Interface ShutDownChannelListener
- All Superinterfaces:
ChannelListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional sub interface enabling a lambda for the onShutDown method.
- Since:
- 2.0
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonCreate(com.rabbitmq.client.Channel channel, boolean transactional) Called when a new channel is created.voidonShutDown(com.rabbitmq.client.ShutdownSignalException signal) Called when the underlying RabbitMQ channel is closed for any reason.
-
Method Details
-
onCreate
default void onCreate(com.rabbitmq.client.Channel channel, boolean transactional) Description copied from interface:ChannelListenerCalled when a new channel is created.- Specified by:
onCreatein interfaceChannelListener- Parameters:
channel- the channel.transactional- true if transactional.
-
onShutDown
void onShutDown(com.rabbitmq.client.ShutdownSignalException signal) Description copied from interface:ChannelListenerCalled when the underlying RabbitMQ channel is closed for any reason.- Specified by:
onShutDownin interfaceChannelListener- Parameters:
signal- the shut down signal.
-