Package com.rabbitmq.client
Interface ConsumerShutdownSignalCallback
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConsumerShutdownSignalCallbackCallback interface to be notified when either the consumer channel or the underlying connection has been shut down. Prefer it overConsumerfor a lambda-oriented syntax, if you don't need to implement all the application callbacks.- Since:
- 5.0
- See Also:
CancelCallback,DeliverCallback,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)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleShutdownSignal(java.lang.String consumerTag, ShutdownSignalException sig)Called when either the channel or the underlying connection has been shut down.
-
-
-
Method Detail
-
handleShutdownSignal
void handleShutdownSignal(java.lang.String consumerTag, ShutdownSignalException sig)Called when either the channel or the underlying connection has been shut down.- Parameters:
consumerTag- the consumer tag associated with the consumersig- aShutdownSignalExceptionindicating the reason for the shut down
-
-