Interface ConsumerShutdownSignalCallback

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 ConsumerShutdownSignalCallback
Callback interface to be notified when either the consumer channel or the underlying connection has been shut down. Prefer it over Consumer for a lambda-oriented syntax, if you don't need to implement all the application callbacks.
Since:
5.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when either the channel or the underlying connection has been shut down.
  • Method Details

    • handleShutdownSignal

      void handleShutdownSignal(String consumerTag, ShutdownSignalException sig)
      Called when either the channel or the underlying connection has been shut down.
      Parameters:
      consumerTag - the consumer tag associated with the consumer
      sig - a ShutdownSignalException indicating the reason for the shut down