public class EnqueueInterceptor extends Object implements InstanceMethodsAroundInterceptor, InstanceConstructorInterceptor
EnqueueInterceptor create a local span and the prefix of the span operation name is start with `Async` when
the `enqueue` method called and also put the `ContextSnapshot` and `RealCall` instance into the
`SkyWalkingDynamicField`.| Constructor and Description |
|---|
EnqueueInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
afterMethod(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
Object ret) |
void |
beforeMethod(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
MethodInterceptResult result) |
void |
handleMethodException(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
Throwable t) |
void |
onConstruct(EnhancedInstance objInst,
Object[] allArguments) |
public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, MethodInterceptResult result) throws Throwable
beforeMethod in interface InstanceMethodsAroundInterceptorThrowablepublic Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable
afterMethod in interface InstanceMethodsAroundInterceptorThrowablepublic void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t)
handleMethodException in interface InstanceMethodsAroundInterceptorpublic void onConstruct(EnhancedInstance objInst, Object[] allArguments)
onConstruct in interface InstanceConstructorInterceptorCopyright © 2023 The Apache Software Foundation. All rights reserved.