public class RootContext extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
KEY_BRANCH_TYPE
The constant KEY_BRANCH_TYPE
|
static String |
KEY_GLOBAL_LOCK_FLAG
The constant KEY_GLOBAL_LOCK_FLAG, VALUE_GLOBAL_LOCK_FLAG
|
static String |
KEY_XID
The constant KEY_XID.
|
static Boolean |
VALUE_GLOBAL_LOCK_FLAG |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
assertNotInGlobalTransaction()
Assert not in global transaction.
|
static void |
bind(String xid)
Bind xid.
|
static void |
bindBranchType(BranchType branchType)
bind branch type
|
static void |
bindGlobalLockFlag()
declare local transactions will use global lock check for update/delete/insert/selectForUpdate SQL
|
static Map<String,Object> |
entries()
entry map
|
static BranchType |
getBranchType()
get the branch type
|
static String |
getXID()
Gets xid.
|
static boolean |
inGlobalTransaction()
In global transaction boolean.
|
static boolean |
inSagaBranch()
In saga branch boolean.
|
static boolean |
inTccBranch()
In tcc branch boolean.
|
static boolean |
requireGlobalLock()
requires global lock check
|
static void |
setDefaultBranchType(BranchType defaultBranchType) |
static String |
unbind()
Unbind xid.
|
static BranchType |
unbindBranchType()
unbind branch type
|
static void |
unbindGlobalLockFlag() |
public static final String KEY_GLOBAL_LOCK_FLAG
public static final Boolean VALUE_GLOBAL_LOCK_FLAG
public static void setDefaultBranchType(BranchType defaultBranchType)
public static void bindGlobalLockFlag()
public static void unbindGlobalLockFlag()
public static boolean inGlobalTransaction()
public static boolean inTccBranch()
public static boolean inSagaBranch()
@Nullable public static BranchType getBranchType()
public static void bindBranchType(@Nonnull BranchType branchType)
branchType - the branch type@Nullable public static BranchType unbindBranchType()
public static boolean requireGlobalLock()
public static void assertNotInGlobalTransaction()
Copyright © 2020 Seata. All rights reserved.