Package com.rabbitmq.client
Interface CancelCallback
-
- 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 CancelCallbackCallback interface to be notified of the cancellation of a consumer. Prefer it overConsumerfor a lambda-oriented syntax, if you don't need to implement all the application callbacks.- Since:
- 5.0
- See Also:
DeliverCallback,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)Called when the consumer is cancelled for reasons other than by a call toChannel.basicCancel(java.lang.String).
-
-
-
Method Detail
-
handle
void handle(java.lang.String consumerTag) throws java.io.IOExceptionCalled when the consumer is cancelled for reasons other than by a call toChannel.basicCancel(java.lang.String). For example, the queue has been deleted. SeeConsumer.handleCancelOk(java.lang.String)for notification of consumer cancellation due toChannel.basicCancel(java.lang.String).- Parameters:
consumerTag- the consumer tag associated with the consumer- Throws:
java.io.IOException
-
-