Interface ShutDownChannelListener

All Superinterfaces:
ChannelListener
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 ShutDownChannelListener extends ChannelListener
Functional sub interface enabling a lambda for the onShutDown method.
Since:
2.0
Author:
Gary Russell
  • Method Summary

    Modifier and Type
    Method
    Description
    default 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.
  • Method Details

    • onCreate

      default 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

      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.