Package com.rabbitmq.client
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.
@FunctionalInterface public interface DeliverCallbackCallback interface to be notified when a message is delivered. Prefer it overConsumerfor a lambda-oriented syntax, if you don't need to implement all the application callbacks.- Since:
- 5.0
- See Also:
CancelCallback,ConsumerShutdownSignalCallback,Channel.basicConsume(String, boolean, String, boolean, boolean, Map, DeliverCallback, CancelCallback),Channel.basicConsume(String, boolean, String, boolean, boolean, Map, DeliverCallback, ConsumerShutdownSignalCallback),Channel.basicConsume(String, boolean, String, boolean, boolean, Map, DeliverCallback, CancelCallback, ConsumerShutdownSignalCallback)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(java.lang.String consumerTag, Delivery message)Called when abasic.deliveris received for this consumer.
-
-
-
Method Detail
-
handle
void handle(java.lang.String consumerTag, Delivery message) throws java.io.IOExceptionCalled when abasic.deliveris received for this consumer.- Parameters:
consumerTag- the consumer tag associated with the consumermessage- the delivered message- Throws:
java.io.IOException- if the consumer encounters an I/O error while processing the message
-
-