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

public abstract class AbstractRabbitConsumerEvent extends AbstractRabbitEvent<Object>
Abstract class for RabbitMQ consumer events.
Since:
4.1.0
See Also:
  • Constructor Details

    • AbstractRabbitConsumerEvent

      protected AbstractRabbitConsumerEvent(Object bean, String method, String queue)
      Default constructor.
      Parameters:
      bean - The bean annotated as RabbitListener
      method - The consumer method
      queue - The name of the queue the consumer subscribes to
  • Method Details

    • getQueue

      public String getQueue()
      Returns:
      The name of the queue the consumer subscribes to.
    • getMethod

      public String getMethod()
      Returns:
      The consumer method.