Class CompositeChannelListener
java.lang.Object
org.springframework.amqp.rabbit.connection.CompositeChannelListener
- All Implemented Interfaces:
ChannelListener
- Author:
- Dave Syer, Gary Russell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDelegate
(ChannelListener delegate) 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.void
setDelegates
(List<? extends ChannelListener> delegates)
-
Constructor Details
-
CompositeChannelListener
public CompositeChannelListener()
-
-
Method Details
-
onCreate
public void onCreate(com.rabbitmq.client.Channel channel, boolean transactional) Description copied from interface:ChannelListener
Called when a new channel is created.- Specified by:
onCreate
in interfaceChannelListener
- Parameters:
channel
- the channel.transactional
- true if transactional.
-
onShutDown
public void onShutDown(com.rabbitmq.client.ShutdownSignalException signal) Description copied from interface:ChannelListener
Called when the underlying RabbitMQ channel is closed for any reason.- Specified by:
onShutDown
in interfaceChannelListener
- Parameters:
signal
- the shut down signal.
-
setDelegates
-
addDelegate
-