Package io.micronaut.rabbitmq.intercept
Interface DefaultConsumer
- All Superinterfaces:
com.rabbitmq.client.Consumer
public interface DefaultConsumer
extends com.rabbitmq.client.Consumer
A default
Consumer
that delegates cancelled or shutdown
with a single method handleTerminate(String)
.- Since:
- 1.1.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.Methods inherited from interface com.rabbitmq.client.Consumer
handleDelivery
-
Method Details
-
handleConsumeOk
- Specified by:
handleConsumeOk
in interfacecom.rabbitmq.client.Consumer
-
handleCancelOk
- Specified by:
handleCancelOk
in interfacecom.rabbitmq.client.Consumer
-
handleCancel
- Specified by:
handleCancel
in interfacecom.rabbitmq.client.Consumer
- Throws:
IOException
-
handleShutdownSignal
default void handleShutdownSignal(String consumerTag, com.rabbitmq.client.ShutdownSignalException sig) - Specified by:
handleShutdownSignal
in interfacecom.rabbitmq.client.Consumer
-
handleRecoverOk
- Specified by:
handleRecoverOk
in interfacecom.rabbitmq.client.Consumer
-
handleTerminate
Called when a consumer is cancelled or shut down.- Parameters:
consumerTag
- The consumer tag
-