public enum GlobalStatus extends Enum<GlobalStatus>
| Enum Constant and Description |
|---|
AsyncCommitting
All branches can be async committed.
|
Begin
The Begin.
|
CommitFailed
The Commit failed.
|
CommitRetrying
The Commit retrying.
|
CommitRetryTimeout
The commit retry Timeout .
|
Committed
PHASE 2: Final Status: will NOT change any more.
|
Committing
PHASE 2: Running Status: may be changed any time.
|
Finished
The Finished.
|
Rollbacked
The Rollbacked.
|
RollbackFailed
The Rollback failed.
|
Rollbacking
Rollbacking global status.
|
RollbackRetrying
The Rollback retrying.
|
RollbackRetryTimeout
The rollback retry Timeout .
|
TimeoutRollbacked
The Timeout rollbacked.
|
TimeoutRollbackFailed
The Timeout rollback failed.
|
TimeoutRollbacking
The Timeout rollbacking.
|
TimeoutRollbackRetrying
The Timeout rollback retrying.
|
UnKnown
Un known global status.
|
| Modifier and Type | Method and Description |
|---|---|
static GlobalStatus |
get(byte code)
Get global status.
|
static GlobalStatus |
get(int code)
Get global status.
|
int |
getCode()
Gets code.
|
static boolean |
isOnePhaseTimeout(GlobalStatus status)
Is one phase timeout boolean.
|
static boolean |
isTwoPhaseHeuristic(GlobalStatus status)
Is two phase heuristic boolean.
|
static boolean |
isTwoPhaseSuccess(GlobalStatus status)
Is two phase success boolean.
|
static GlobalStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlobalStatus UnKnown
public static final GlobalStatus Begin
public static final GlobalStatus Committing
public static final GlobalStatus CommitRetrying
public static final GlobalStatus Rollbacking
public static final GlobalStatus RollbackRetrying
public static final GlobalStatus TimeoutRollbacking
public static final GlobalStatus TimeoutRollbackRetrying
public static final GlobalStatus AsyncCommitting
public static final GlobalStatus Committed
public static final GlobalStatus CommitFailed
public static final GlobalStatus Rollbacked
public static final GlobalStatus RollbackFailed
public static final GlobalStatus TimeoutRollbacked
public static final GlobalStatus TimeoutRollbackFailed
public static final GlobalStatus Finished
public static final GlobalStatus CommitRetryTimeout
public static final GlobalStatus RollbackRetryTimeout
public static GlobalStatus[] values()
for (GlobalStatus c : GlobalStatus.values()) System.out.println(c);
public static GlobalStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public static GlobalStatus get(byte code)
code - the codepublic static GlobalStatus get(int code)
code - the codepublic static boolean isOnePhaseTimeout(GlobalStatus status)
status - the statuspublic static boolean isTwoPhaseSuccess(GlobalStatus status)
status - the statuspublic static boolean isTwoPhaseHeuristic(GlobalStatus status)
status - the statusCopyright © 2023 Seata. All rights reserved.