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 voidhandleCancel(String consumerTag) default voidhandleCancelOk(String consumerTag) default voidhandleConsumeOk(String consumerTag) default voidhandleRecoverOk(String consumerTag) default voidhandleShutdownSignal(String consumerTag, com.rabbitmq.client.ShutdownSignalException sig) default voidhandleTerminate(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:
handleConsumeOkin interfacecom.rabbitmq.client.Consumer
-
handleCancelOk
- Specified by:
handleCancelOkin interfacecom.rabbitmq.client.Consumer
-
handleCancel
- Specified by:
handleCancelin interfacecom.rabbitmq.client.Consumer- Throws:
IOException
-
handleShutdownSignal
default void handleShutdownSignal(String consumerTag, com.rabbitmq.client.ShutdownSignalException sig) - Specified by:
handleShutdownSignalin interfacecom.rabbitmq.client.Consumer
-
handleRecoverOk
- Specified by:
handleRecoverOkin interfacecom.rabbitmq.client.Consumer
-
handleTerminate
Called when a consumer is cancelled or shut down.- Parameters:
consumerTag- The consumer tag
-