Class CompositeChannelListener

  • All Implemented Interfaces:
    ChannelListener

    public class CompositeChannelListener
    extends java.lang.Object
    implements ChannelListener
    Author:
    Dave Syer, Gary Russell
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void 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​(java.util.List<? extends ChannelListener> delegates)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompositeChannelListener

        public CompositeChannelListener()
    • Method Detail

      • 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 interface ChannelListener
        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 interface ChannelListener
        Parameters:
        signal - the shut down signal.
      • setDelegates

        public void setDelegates​(java.util.List<? extends ChannelListener> delegates)