Class NatsIntroductionAdvice
java.lang.Object
io.micronaut.nats.intercept.AbstractIntroductionAdvice
io.micronaut.nats.intercept.NatsIntroductionAdvice
- All Implemented Interfaces:
io.micronaut.aop.Interceptor<Object,Object>, io.micronaut.aop.MethodInterceptor<Object, Object>, io.micronaut.core.order.Ordered
@Singleton
@InterceptorBean(NatsClient.class)
public class NatsIntroductionAdvice
extends AbstractIntroductionAdvice
implements io.micronaut.aop.MethodInterceptor<Object,Object>
Implementation of the
NatsClient advice annotation.- Since:
- 1.0.0
- Author:
- jgrimm
-
Field Summary
Fields inherited from class AbstractIntroductionAdvice
beanContext, conversionService, scheduler, serDesRegistryFields inherited from interface io.micronaut.aop.Interceptor
ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGETFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionNatsIntroductionAdvice(io.micronaut.context.BeanContext beanContext, io.micronaut.core.convert.ConversionService conversionService, NatsMessageSerDesRegistry serDesRegistry, ExecutorService executorService) Default constructor. -
Method Summary
Methods inherited from class AbstractIntroductionAdvice
buildNatsMessage, buildPublisherState, handleResultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.aop.MethodInterceptor
interceptMethods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
NatsIntroductionAdvice
public NatsIntroductionAdvice(io.micronaut.context.BeanContext beanContext, io.micronaut.core.convert.ConversionService conversionService, NatsMessageSerDesRegistry serDesRegistry, @Named("blocking") ExecutorService executorService) Default constructor.- Parameters:
beanContext- The bean contextconversionService- The conversion serviceserDesRegistry- The serialization/deserialization registryexecutorService- The executor to execute reactive operations on
-
-
Method Details
-
intercept
-