Interface DeliverCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(String consumerTag, Delivery message)
    Called when a basic.deliver is received for this consumer.
  • Method Details

    • handle

      void handle(String consumerTag, Delivery message) throws IOException
      Called when a basic.deliver is received for this consumer.
      Parameters:
      consumerTag - the consumer tag associated with the consumer
      message - the delivered message
      Throws:
      IOException - if the consumer encounters an I/O error while processing the message