@Singleton public class RabbitMQConsumerAdvice extends java.lang.Object implements io.micronaut.context.processor.ExecutableMethodProcessor<Queue>, java.lang.AutoCloseable
ExecutableMethodProcessor
that will process all beans annotated
with RabbitListener
and create and subscribe the relevant methods
as consumers to RabbitMQ queues.Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
process(io.micronaut.inject.BeanDefinition<?> beanDefinition,
io.micronaut.inject.ExecutableMethod<?,?> method) |
public RabbitMQConsumerAdvice(io.micronaut.context.BeanContext beanContext, RabbitBinderRegistry binderRegistry, RabbitListenerExceptionHandler exceptionHandler, RabbitMessageSerDesRegistry serDesRegistry, io.micronaut.core.convert.ConversionService<?> conversionService, java.util.List<ChannelPool> channelPools)
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