Interface ChannelListener
- All Known Subinterfaces:
ShutDownChannelListener
- All Known Implementing Classes:
CompositeChannelListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A listener for new channel creation and destruction.
- Author:
- Dave Syer, Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCreate
(com.rabbitmq.client.Channel channel, boolean transactional) Called when a new channel is created.default void
onShutDown
(com.rabbitmq.client.ShutdownSignalException signal) Called when the underlying RabbitMQ channel is closed for any reason.
-
Method Details
-
onCreate
void onCreate(com.rabbitmq.client.Channel channel, boolean transactional) Called when a new channel is created.- Parameters:
channel
- the channel.transactional
- true if transactional.
-
onShutDown
default void onShutDown(com.rabbitmq.client.ShutdownSignalException signal) Called when the underlying RabbitMQ channel is closed for any reason.- Parameters:
signal
- the shut down signal.
-