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.

    @FunctionalInterface
    public interface ChannelListener
    A listener for new channel creation and destruction.
    Author:
    Dave Syer, Gary Russell
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void 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 Detail

      • 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.