Class CompositeChannelListener
- java.lang.Object
-
- org.springframework.amqp.rabbit.connection.CompositeChannelListener
-
- All Implemented Interfaces:
ChannelListener
public class CompositeChannelListener extends Object implements ChannelListener
- Author:
- Dave Syer, Gary Russell
-
-
Constructor Summary
Constructors Constructor Description CompositeChannelListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDelegate(ChannelListener delegate)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.voidsetDelegates(List<? extends ChannelListener> delegates)
-
-
-
Method Detail
-
onCreate
public 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
public 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.
-
setDelegates
public void setDelegates(List<? extends ChannelListener> delegates)
-
addDelegate
public void addDelegate(ChannelListener delegate)
-
-