public class AsyncExecuteInterceptor extends Object implements InstanceMethodsAroundInterceptor
AsyncExecuteInterceptor enhances ExecutorEngine.asyncExecute(SQLType, Collection, List, ExecuteCallback)
so that the sql executor can get a ContextSnapshot of main thread when it is executed asynchronously.| Modifier and Type | Field and Description |
|---|---|
static String |
SNAPSHOT_DATA_KEY |
| Constructor and Description |
|---|
AsyncExecuteInterceptor() |
| 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 static final String SNAPSHOT_DATA_KEY
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 © 2019 The Apache Software Foundation. All rights reserved.