@Singleton
public class HystrixInterceptor
extends java.lang.Object
implements io.micronaut.aop.MethodInterceptor<java.lang.Object,java.lang.Object>
MethodInterceptor that adds support for decorating methods for Hystrix.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_COMMAND
The attribute used the Hystrix command to be executed within the
MethodInvocationContext. |
static java.lang.String |
ATTRIBUTE_GROUP
The attribute used the Hystrix command to be executed within the
MethodInvocationContext. |
static int |
POSITION |
| Constructor and Description |
|---|
HystrixInterceptor(io.micronaut.retry.intercept.RecoveryInterceptor recoveryInterceptor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
java.lang.Object |
intercept(io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context) |
public static final java.lang.String ATTRIBUTE_COMMAND
MethodInvocationContext.public static final java.lang.String ATTRIBUTE_GROUP
MethodInvocationContext.public static final int POSITION
public HystrixInterceptor(io.micronaut.retry.intercept.RecoveryInterceptor recoveryInterceptor)
recoveryInterceptor - recoveryInterceptorpublic int getOrder()
getOrder in interface io.micronaut.core.order.Orderedpublic java.lang.Object intercept(io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context)
intercept in interface io.micronaut.aop.MethodInterceptor<java.lang.Object,java.lang.Object>