@Deprecated public class RootContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BRANCH_TYPE
Deprecated.
The constant KEY_BRANCH_TYPE
* used for apache dubbo
|
static String |
KEY_XID
Deprecated.
The constant KEY_XID.
|
| Constructor and Description |
|---|
RootContext()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertNotInGlobalTransaction()
Deprecated.
Assert not in global transaction.
|
static void |
bind(String xid)
Deprecated.
Bind.
|
static void |
bindBranchType(BranchType branchType)
Deprecated.
Bind branch type.
|
static void |
bindGlobalLockFlag()
Deprecated.
Bind global lock flag.
|
static Map<String,Object> |
entries()
Deprecated.
Entries map.
|
static BranchType |
getBranchType()
Deprecated.
Gets branch type.
|
static Integer |
getTimeout()
Deprecated.
Gets timeout.
|
static String |
getXID()
Deprecated.
Gets xid.
|
static boolean |
inGlobalTransaction()
Deprecated.
In global transaction boolean.
|
static boolean |
inSagaBranch()
Deprecated.
In saga branch boolean.
|
static boolean |
inTccBranch()
Deprecated.
In tcc branch boolean.
|
static boolean |
requireGlobalLock()
Deprecated.
Require global lock boolean.
|
static void |
setDefaultBranchType(BranchType defaultBranchType)
Deprecated.
Sets default branch type.
|
static void |
setTimeout(Integer timeout)
Deprecated.
Sets timeout.
|
static String |
unbind()
Deprecated.
Unbind string.
|
static BranchType |
unbindBranchType()
Deprecated.
Unbind branch type branch type.
|
static void |
unbindGlobalLockFlag()
Deprecated.
Unbind global lock flag.
|
public static final String KEY_XID
public static final String KEY_BRANCH_TYPE
public static void setDefaultBranchType(BranchType defaultBranchType)
defaultBranchType - the default branch typepublic static Integer getTimeout()
public static void setTimeout(Integer timeout)
timeout - the timeoutpublic 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 © 2025 Apache. All rights reserved.