Package io.micronaut.rabbitmq.event
Class AbstractRabbitConsumerEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.rabbitmq.event.AbstractRabbitEvent<Object>
io.micronaut.rabbitmq.event.AbstractRabbitConsumerEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RabbitConsumerStarted
,RabbitConsumerStarting
Abstract class for RabbitMQ consumer events.
- Since:
- 4.1.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRabbitConsumerEvent
(Object bean, String method, String queue) Default constructor. -
Method Summary
Methods inherited from class io.micronaut.rabbitmq.event.AbstractRabbitEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AbstractRabbitConsumerEvent
Default constructor.- Parameters:
bean
- The bean annotated asRabbitListener
method
- The consumer methodqueue
- The name of the queue the consumer subscribes to
-
-
Method Details
-
getQueue
- Returns:
- The name of the queue the consumer subscribes to.
-
getMethod
- Returns:
- The consumer method.
-