Class ConsumeOkEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.amqp.event.AmqpEvent
org.springframework.amqp.rabbit.listener.ConsumeOkEvent
- All Implemented Interfaces:
Serializable
An
AmqpEvent
emitted by the listener container
when consumer is subscribed to the queue.- Since:
- 1.7.5
- Author:
- Gary Russell, Artem Bilan
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionConsumeOkEvent
(Object source, String queue, String consumerTag) Instantiate aConsumeOkEvent
based on the provided consumer, queue and consumer tag. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ConsumeOkEvent
Instantiate aConsumeOkEvent
based on the provided consumer, queue and consumer tag.- Parameters:
source
- the consumer subscribed to the queuequeue
- the queue to consumeconsumerTag
- the tag indicate a consumer subscription
-
-
Method Details
-
getQueue
Obtain the queue name a consumer has been subscribed.- Returns:
- the queue name a consumer subscribed.
- Since:
- 1.7.7
-
getConsumerTag
Obtain the consumer tag assigned to the consumer.- Returns:
- the consumer tag for subscription.
- Since:
- 1.7.7
-
toString
- Overrides:
toString
in classEventObject
-