public class GlobalTransactionalInterceptor extends Object implements ConfigurationChangeListener, org.aopalliance.intercept.MethodInterceptor, SeataInterceptor
| 限定符和类型 | 字段和说明 |
|---|---|
protected AspectTransactional |
aspectTransactional |
CORE_LISTENER_THREAD, EXECUTOR_SERVICE, MAX_LISTENER_THREAD| 构造器和说明 |
|---|
GlobalTransactionalInterceptor() |
GlobalTransactionalInterceptor(FailureHandler failureHandler)
Instantiates a new Global transactional interceptor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Annotation> |
getAnnotation(Method method,
Class<?> targetClass,
Class<T> annotationClass) |
int |
getOrder() |
SeataInterceptorPosition |
getPosition()
Get position.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) |
void |
onChangeEvent(ConfigurationChangeEvent event)
Process.
|
static void |
onDegradeCheck(DegradeCheckEvent event) |
void |
setOrder(int order)
Sets order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterEvent, beforeEvent, getExecutorService, onProcessEvent, onShutDownprotected AspectTransactional aspectTransactional
public GlobalTransactionalInterceptor()
public GlobalTransactionalInterceptor(FailureHandler failureHandler)
failureHandler - the failure handlerpublic Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws Throwable
invoke 在接口中 org.aopalliance.intercept.MethodInterceptorThrowablepublic <T extends Annotation> T getAnnotation(Method method, Class<?> targetClass, Class<T> annotationClass)
public void onChangeEvent(ConfigurationChangeEvent event)
ConfigurationChangeListeneronChangeEvent 在接口中 ConfigurationChangeListenerevent - the eventpublic static void onDegradeCheck(DegradeCheckEvent event)
public int getOrder()
getOrder 在接口中 org.springframework.core.Orderedpublic void setOrder(int order)
SeataInterceptorsetOrder 在接口中 SeataInterceptororder - the orderpublic SeataInterceptorPosition getPosition()
SeataInterceptorgetPosition 在接口中 SeataInterceptorCopyright © 2022 Seata. All rights reserved.