Class ListenerContainerIdleEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.amqp.event.AmqpEvent
org.springframework.amqp.rabbit.listener.ListenerContainerIdleEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionListenerContainerIdleEvent
(Object source, long idleTime, String id, String... queueNames) -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ListenerContainerIdleEvent
-
-
Method Details
-
getIdleTime
public long getIdleTime()How long the container has been idle.- Returns:
- the time in milliseconds.
-
getQueueNames
The queues the container is listening to.- Returns:
- the queue names.
-
getListenerId
The id of the listener (if@RabbitListener
) or the container bean name.- Returns:
- the id.
-
toString
- Overrides:
toString
in classEventObject
-