public interface DefaultConsumer
extends com.rabbitmq.client.Consumer
Consumer
that delegates cancelled or shutdown
with a single method handleTerminate(String)
.Modifier and Type | Method and Description |
---|---|
default void |
handleCancel(String consumerTag) |
default void |
handleCancelOk(String consumerTag) |
default void |
handleConsumeOk(String consumerTag) |
default void |
handleRecoverOk(String consumerTag) |
default void |
handleShutdownSignal(String consumerTag,
com.rabbitmq.client.ShutdownSignalException sig) |
default void |
handleTerminate(String consumerTag)
Called when a consumer is cancelled or shut down.
|
default void handleConsumeOk(String consumerTag)
handleConsumeOk
in interface com.rabbitmq.client.Consumer
default void handleCancelOk(String consumerTag)
handleCancelOk
in interface com.rabbitmq.client.Consumer
default void handleCancel(String consumerTag) throws IOException
handleCancel
in interface com.rabbitmq.client.Consumer
IOException
default void handleShutdownSignal(String consumerTag, com.rabbitmq.client.ShutdownSignalException sig)
handleShutdownSignal
in interface com.rabbitmq.client.Consumer
default void handleRecoverOk(String consumerTag)
handleRecoverOk
in interface com.rabbitmq.client.Consumer
default void handleTerminate(String consumerTag)
consumerTag
- The consumer tag