@FunctionalInterface public interface ShutDownChannelListener extends ChannelListener
Modifier and Type | Method and Description |
---|---|
default void |
onCreate(com.rabbitmq.client.Channel channel,
boolean transactional)
Called when a new channel is created.
|
void |
onShutDown(com.rabbitmq.client.ShutdownSignalException signal)
Called when the underlying RabbitMQ channel is closed for any
reason.
|
default void onCreate(com.rabbitmq.client.Channel channel, boolean transactional)
ChannelListener
onCreate
in interface ChannelListener
channel
- the channel.transactional
- true if transactional.void onShutDown(com.rabbitmq.client.ShutdownSignalException signal)
ChannelListener
onShutDown
in interface ChannelListener
signal
- the shut down signal.