Class RabbitMQIntroductionAdvice

  • All Implemented Interfaces:
    io.micronaut.aop.Interceptor<java.lang.Object,​java.lang.Object>, io.micronaut.aop.MethodInterceptor<java.lang.Object,​java.lang.Object>, io.micronaut.core.order.Ordered

    @Singleton
    public class RabbitMQIntroductionAdvice
    extends java.lang.Object
    implements io.micronaut.aop.MethodInterceptor<java.lang.Object,​java.lang.Object>
    Implementation of the RabbitClient advice annotation.
    Since:
    1.1.0
    See Also:
    RabbitClient
    • Field Summary

      • Fields inherited from interface io.micronaut.aop.Interceptor

        ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGET
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      RabbitMQIntroductionAdvice​(io.micronaut.context.BeanContext beanContext, io.micronaut.core.convert.ConversionService<?> conversionService, RabbitMessageSerDesRegistry serDesRegistry, java.util.concurrent.ExecutorService executorService)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object intercept​(io.micronaut.aop.MethodInvocationContext<java.lang.Object,​java.lang.Object> context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.aop.MethodInterceptor

        intercept
      • Methods inherited from interface io.micronaut.core.order.Ordered

        getOrder
    • Constructor Detail

      • RabbitMQIntroductionAdvice

        public RabbitMQIntroductionAdvice​(io.micronaut.context.BeanContext beanContext,
                                          io.micronaut.core.convert.ConversionService<?> conversionService,
                                          RabbitMessageSerDesRegistry serDesRegistry,
                                          @Named("io")
                                          java.util.concurrent.ExecutorService executorService)
        Default constructor.
        Parameters:
        beanContext - The bean context
        conversionService - The conversion service
        serDesRegistry - The registry to find a serDes to serialize the body
        executorService - The executor to execute reactive operations on
    • Method Detail

      • intercept

        public java.lang.Object intercept​(io.micronaut.aop.MethodInvocationContext<java.lang.Object,​java.lang.Object> context)
        Specified by:
        intercept in interface io.micronaut.aop.MethodInterceptor<java.lang.Object,​java.lang.Object>