public enum BranchStatus extends Enum<BranchStatus>
| 枚举常量和说明 |
|---|
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_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.
|
Registered
The Registered.
|
Unknown
The Unknown.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static BranchStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 BranchStatus[] values()
for (BranchStatus c : BranchStatus.values()) System.out.println(c);
public static BranchStatus valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getCode()
public static BranchStatus get(byte code)
code - the codepublic static BranchStatus get(int code)
code - the codeCopyright © 2019 Seata. All rights reserved.