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(java.lang.String consumerTag) |
default void |
handleCancelOk(java.lang.String consumerTag) |
default void |
handleConsumeOk(java.lang.String consumerTag) |
default void |
handleRecoverOk(java.lang.String consumerTag) |
default void |
handleShutdownSignal(java.lang.String consumerTag,
com.rabbitmq.client.ShutdownSignalException sig) |
default void |
handleTerminate(java.lang.String consumerTag)
Called when a consumer is cancelled or shut down.
|
default void handleConsumeOk(java.lang.String consumerTag)
handleConsumeOk
in interface com.rabbitmq.client.Consumer
default void handleCancelOk(java.lang.String consumerTag)
handleCancelOk
in interface com.rabbitmq.client.Consumer
default void handleCancel(java.lang.String consumerTag) throws java.io.IOException
handleCancel
in interface com.rabbitmq.client.Consumer
java.io.IOException
default void handleShutdownSignal(java.lang.String consumerTag, com.rabbitmq.client.ShutdownSignalException sig)
handleShutdownSignal
in interface com.rabbitmq.client.Consumer
default void handleRecoverOk(java.lang.String consumerTag)
handleRecoverOk
in interface com.rabbitmq.client.Consumer
default void handleTerminate(java.lang.String consumerTag)
consumerTag
- The consumer tag