Class ListenerContainerIdleEvent

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ListenerContainerIdleEvent​(java.lang.Object source, long idleTime, java.lang.String id, java.lang.String... queueNames)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getIdleTime()
      How long the container has been idle.
      java.lang.String getListenerId()
      The id of the listener (if @RabbitListener) or the container bean name.
      java.lang.String[] getQueueNames()
      The queues the container is listening to.
      java.lang.String toString()  
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

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

      • ListenerContainerIdleEvent

        public ListenerContainerIdleEvent​(java.lang.Object source,
                                          long idleTime,
                                          @Nullable
                                          java.lang.String id,
                                          java.lang.String... queueNames)
    • Method Detail

      • getIdleTime

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject