Package io.micronaut.rabbitmq.intercept
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>,java.lang.AutoCloseable
@Singleton public class RabbitMQConsumerAdvice extends java.lang.Object implements io.micronaut.context.processor.ExecutableMethodProcessor<Queue>, java.lang.AutoCloseable
AnExecutableMethodProcessorthat will process all beans annotated withRabbitListenerand create and subscribe the relevant methods as consumers to RabbitMQ queues.- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description RabbitMQConsumerAdvice(io.micronaut.context.BeanContext beanContext, RabbitBinderRegistry binderRegistry, RabbitListenerExceptionHandler exceptionHandler, RabbitMessageSerDesRegistry serDesRegistry, io.micronaut.core.convert.ConversionService<?> conversionService, java.util.List<ChannelPool> channelPools)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidprocess(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?,?> method)
-
-
-
Constructor Detail
-
RabbitMQConsumerAdvice
public RabbitMQConsumerAdvice(io.micronaut.context.BeanContext beanContext, RabbitBinderRegistry binderRegistry, RabbitListenerExceptionHandler exceptionHandler, RabbitMessageSerDesRegistry serDesRegistry, io.micronaut.core.convert.ConversionService<?> conversionService, java.util.List<ChannelPool> channelPools)Default constructor.- Parameters:
beanContext- The bean contextbinderRegistry- The registry to bind arguments to the methodexceptionHandler- The exception handler to use if the consumer isn't a handlerserDesRegistry- The serialization/deserialization registryconversionService- The service to convert consume argument valueschannelPools- The channel pools to retrieve channels
-
-