public enum BranchStatus extends Enum<BranchStatus>
| Enum Constant and Description |
|---|
PhaseOne_Done
The Phase one done.
|
PhaseOne_Failed
The Phase one failed.
|
PhaseOne_Timeout
The Phase one timeout.
|
PhaseTwo_CommitFailed_Retryable
The Phase two commit failed retryable.
|
PhaseTwo_CommitFailed_Unretryable
The Phase two commit failed unretryable.
|
PhaseTwo_CommitFailed_XAER_NOTA_Retryable
The Phase two commit failed retryable because of XAException.XAER_NOTA.
|
PhaseTwo_Committed
The Phase two committed.
|
PhaseTwo_Rollbacked
The Phase two rollbacked.
|
PhaseTwo_RollbackFailed_Retryable
The Phase two rollback failed retryable.
|
PhaseTwo_RollbackFailed_Unretryable
The Phase two rollback failed unretryable.
|
PhaseTwo_RollbackFailed_XAER_NOTA_Retryable
The Phase two rollback failed retryable because of XAException.XAER_NOTA.
|
Registered
The Registered.
|
Unknown
The Unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static BranchStatus |
get(byte code)
Get branch status.
|
static BranchStatus |
get(int code)
Get branch status.
|
int |
getCode()
Gets code.
|
static BranchStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BranchStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BranchStatus Unknown
public static final BranchStatus Registered
public static final BranchStatus PhaseOne_Done
public static final BranchStatus PhaseOne_Failed
public static final BranchStatus PhaseOne_Timeout
public static final BranchStatus PhaseTwo_Committed
public static final BranchStatus PhaseTwo_CommitFailed_Retryable
public static final BranchStatus PhaseTwo_CommitFailed_Unretryable
public static final BranchStatus PhaseTwo_Rollbacked
public static final BranchStatus PhaseTwo_RollbackFailed_Retryable
public static final BranchStatus PhaseTwo_RollbackFailed_Unretryable
public static final BranchStatus PhaseTwo_CommitFailed_XAER_NOTA_Retryable
public static final BranchStatus PhaseTwo_RollbackFailed_XAER_NOTA_Retryable
public static BranchStatus[] values()
for (BranchStatus c : BranchStatus.values()) System.out.println(c);
public static BranchStatus 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 BranchStatus get(byte code)
code - the codepublic static BranchStatus get(int code)
code - the codeCopyright © 2023 Seata. All rights reserved.