Class RabbitMQConsumerAdvice

java.lang.Object
io.micronaut.rabbitmq.intercept.RabbitMQConsumerAdvice
All Implemented Interfaces:
io.micronaut.context.processor.AnnotationProcessor<Queue,io.micronaut.inject.ExecutableMethod<?,?>>, io.micronaut.context.processor.ExecutableMethodProcessor<Queue>, AutoCloseable

@Singleton public class RabbitMQConsumerAdvice extends Object implements io.micronaut.context.processor.ExecutableMethodProcessor<Queue>, AutoCloseable
An ExecutableMethodProcessor that will process all beans annotated with RabbitListener and create and subscribe the relevant methods as consumers to RabbitMQ queues.
Since:
1.1.0
Author:
James Kleeh
  • Constructor Details

  • Method Details

    • process

      public void process(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?,?> method)
      Specified by:
      process in interface io.micronaut.context.processor.AnnotationProcessor<Queue,io.micronaut.inject.ExecutableMethod<?,?>>
      Specified by:
      process in interface io.micronaut.context.processor.ExecutableMethodProcessor<Queue>
    • close

      @PreDestroy public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception