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.
@FunctionalInterface public interface ShutDownChannelListener extends ChannelListener
Functional sub interface enabling a lambda for the onShutDown method.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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 Detail
-
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.
-
-