@FunctionalInterface public interface CancelCallback
Consumer
for a lambda-oriented syntax,
if you don't need to implement all the application callbacks.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)
Modifier and Type | Method and Description |
---|---|
void |
handle(String consumerTag)
Called when the consumer is cancelled for reasons other than by a call to
Channel.basicCancel(java.lang.String) . |
void handle(String consumerTag) throws IOException
Channel.basicCancel(java.lang.String)
. For example, the queue has been deleted.
See Consumer.handleCancelOk(java.lang.String)
for notification of consumer
cancellation due to Channel.basicCancel(java.lang.String)
.consumerTag
- the consumer tag associated with the consumerIOException
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.