Class ListenerContainerIdleEvent

All Implemented Interfaces:
Serializable

public class ListenerContainerIdleEvent extends AmqpEvent
An event that is emitted when a container is idle if the container is configured to do so.
Since:
1.6
Author:
Gary Russell
See Also:
  • Constructor Details

    • ListenerContainerIdleEvent

      public ListenerContainerIdleEvent(Object source, long idleTime, @Nullable String id, String... queueNames)
  • Method Details

    • getIdleTime

      public long getIdleTime()
      How long the container has been idle.
      Returns:
      the time in milliseconds.
    • getQueueNames

      public String[] getQueueNames()
      The queues the container is listening to.
      Returns:
      the queue names.
    • getListenerId

      @Nullable public String getListenerId()
      The id of the listener (if @RabbitListener) or the container bean name.
      Returns:
      the id.
    • toString

      public String toString()
      Overrides:
      toString in class EventObject