@Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) @Inherited public @interface GlobalTransactional
io.seata.spring
.annotation.GlobalTransactionScanner#wrapIfNecessary(Object, String, Object)// the scanner for TM, GlobalLock, and
TCC mode,
io.seata.spring.annotation.GlobalTransactionalInterceptor#handleGlobalTransaction
(MethodInvocation,
GlobalTransactional)// TM: the interceptor of TM,
io.seata.spring
.annotation.datasource.SeataAutoDataSourceProxyAdvice#invoke(MethodInvocation)// RM: the interceptor of
GlobalLockLogic and AT/XA mode,
io.seata.spring.tcc
.TccActionInterceptor#invoke(MethodInvocation)// RM: the interceptor of TCC mode| 限定符和类型 | 可选元素和说明 |
|---|---|
int |
lockRetryInternal
已过时。
|
int |
lockRetryInterval
customized global lock retry interval(unit: ms)
you may use this to override global config of "client.rm.lock.retryInterval"
note: 0 or negative number will take no effect(which mean fall back to global config)
|
int |
lockRetryTimes
customized global lock retry times
you may use this to override global config of "client.rm.lock.retryTimes"
note: negative number will take no effect(which mean fall back to global config)
|
String |
name
Given name of the global transaction instance.
|
Class<? extends Throwable>[] |
noRollbackFor
not roll back for the Class
|
String[] |
noRollbackForClassName
not roll back for the class name
|
Propagation |
propagation
the propagation of the global transaction
|
Class<? extends Throwable>[] |
rollbackFor
roll back for the Class
|
String[] |
rollbackForClassName
roll back for the class name
|
int |
timeoutMills
Global transaction timeoutMills in MILLISECONDS.
|
public abstract int timeoutMills
public abstract String name
public abstract String[] rollbackForClassName
public abstract String[] noRollbackForClassName
public abstract Propagation propagation
public abstract int lockRetryInterval
@Deprecated @AliasFor(value="lockRetryInterval") public abstract int lockRetryInternal
Copyright © 2022 Seata. All rights reserved.