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.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SNAPSHOT_DATA_KEY |
| 构造器和说明 |
|---|
AsyncExecuteInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 InstanceMethodsAroundInterceptorThrowablepublic Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable
afterMethod 在接口中 InstanceMethodsAroundInterceptorThrowablepublic void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t)
Copyright © 2018 The Apache Software Foundation. All rights reserved.