public class SendCallbackInterceptor extends Object implements InstanceMethodsAroundInterceptor
Here is the intercept process steps:
1. Get the @SendCallbackEnhanceRequiredInfoand record the service url, context snapshot 2. Create the local span when the callback invokesendCompletemethod 3. Stop the local span whensendCompletemethod finished.
| Constructor and Description |
|---|
SendCallbackInterceptor() |
| 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) |
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 InstanceMethodsAroundInterceptorCopyright © 2022 The Apache Software Foundation. All rights reserved.