public enum BranchStatusProto extends Enum<BranchStatusProto> implements com.google.protobuf.ProtocolMessageEnum
PublishRequest is a publish request.Protobuf enum
io.seata.protocol.protobuf.BranchStatusProto| 枚举常量和说明 |
|---|
BUnknown
special for Unknown
BUnknown = 0; |
PhaseOne_Done
Branch logic is successfully done at phase one.
|
PhaseOne_Failed
Branch logic is failed at phase one.
|
PhaseOne_Timeout
Branch logic is NOT reported for a timeout.
|
PhaseTwo_CommitFailed_Retryable
Commit logic is failed but retryable.
|
PhaseTwo_CommitFailed_Unretryable
Commit logic is failed and NOT retryable.
|
PhaseTwo_Committed
Commit logic is successfully done at phase two.
|
PhaseTwo_Rollbacked
Rollback logic is successfully done at phase two.
|
PhaseTwo_RollbackFailed_Retryable
Rollback logic is failed but retryable.
|
PhaseTwo_RollbackFailed_Unretryable
Rollback logic is failed but NOT retryable.
|
Registered
Registered to TC.
|
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BUnknown_VALUE
special for Unknown
BUnknown = 0; |
static int |
PhaseOne_Done_VALUE
Branch logic is successfully done at phase one.
|
static int |
PhaseOne_Failed_VALUE
Branch logic is failed at phase one.
|
static int |
PhaseOne_Timeout_VALUE
Branch logic is NOT reported for a timeout.
|
static int |
PhaseTwo_CommitFailed_Retryable_VALUE
Commit logic is failed but retryable.
|
static int |
PhaseTwo_CommitFailed_Unretryable_VALUE
Commit logic is failed and NOT retryable.
|
static int |
PhaseTwo_Committed_VALUE
Commit logic is successfully done at phase two.
|
static int |
PhaseTwo_Rollbacked_VALUE
Rollback logic is successfully done at phase two.
|
static int |
PhaseTwo_RollbackFailed_Retryable_VALUE
Rollback logic is failed but retryable.
|
static int |
PhaseTwo_RollbackFailed_Unretryable_VALUE
Rollback logic is failed but NOT retryable.
|
static int |
Registered_VALUE
Registered to TC.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static BranchStatusProto |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<BranchStatusProto> |
internalGetValueMap() |
static BranchStatusProto |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static BranchStatusProto |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static BranchStatusProto |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static BranchStatusProto[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BranchStatusProto BUnknown
special for Unknown
BUnknown = 0;public static final BranchStatusProto Registered
Registered to TC.
Registered = 1;public static final BranchStatusProto PhaseOne_Done
Branch logic is successfully done at phase one.
PhaseOne_Done = 2;public static final BranchStatusProto PhaseOne_Failed
Branch logic is failed at phase one.
PhaseOne_Failed = 3;public static final BranchStatusProto PhaseOne_Timeout
Branch logic is NOT reported for a timeout.
PhaseOne_Timeout = 4;public static final BranchStatusProto PhaseTwo_Committed
Commit logic is successfully done at phase two.
PhaseTwo_Committed = 5;public static final BranchStatusProto PhaseTwo_CommitFailed_Retryable
Commit logic is failed but retryable.
PhaseTwo_CommitFailed_Retryable = 6;public static final BranchStatusProto PhaseTwo_CommitFailed_Unretryable
Commit logic is failed and NOT retryable.
PhaseTwo_CommitFailed_Unretryable = 7;public static final BranchStatusProto PhaseTwo_Rollbacked
Rollback logic is successfully done at phase two.
PhaseTwo_Rollbacked = 8;public static final BranchStatusProto PhaseTwo_RollbackFailed_Retryable
Rollback logic is failed but retryable.
PhaseTwo_RollbackFailed_Retryable = 9;public static final BranchStatusProto PhaseTwo_RollbackFailed_Unretryable
Rollback logic is failed but NOT retryable.
PhaseTwo_RollbackFailed_Unretryable = 10;public static final BranchStatusProto UNRECOGNIZED
public static final int BUnknown_VALUE
special for Unknown
BUnknown = 0;public static final int Registered_VALUE
Registered to TC.
Registered = 1;public static final int PhaseOne_Done_VALUE
Branch logic is successfully done at phase one.
PhaseOne_Done = 2;public static final int PhaseOne_Failed_VALUE
Branch logic is failed at phase one.
PhaseOne_Failed = 3;public static final int PhaseOne_Timeout_VALUE
Branch logic is NOT reported for a timeout.
PhaseOne_Timeout = 4;public static final int PhaseTwo_Committed_VALUE
Commit logic is successfully done at phase two.
PhaseTwo_Committed = 5;public static final int PhaseTwo_CommitFailed_Retryable_VALUE
Commit logic is failed but retryable.
PhaseTwo_CommitFailed_Retryable = 6;public static final int PhaseTwo_CommitFailed_Unretryable_VALUE
Commit logic is failed and NOT retryable.
PhaseTwo_CommitFailed_Unretryable = 7;public static final int PhaseTwo_Rollbacked_VALUE
Rollback logic is successfully done at phase two.
PhaseTwo_Rollbacked = 8;public static final int PhaseTwo_RollbackFailed_Retryable_VALUE
Rollback logic is failed but retryable.
PhaseTwo_RollbackFailed_Retryable = 9;public static final int PhaseTwo_RollbackFailed_Unretryable_VALUE
Rollback logic is failed but NOT retryable.
PhaseTwo_RollbackFailed_Unretryable = 10;public static BranchStatusProto[] values()
for (BranchStatusProto c : BranchStatusProto.values()) System.out.println(c);
public static BranchStatusProto valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static BranchStatusProto valueOf(int value)
forNumber(int) instead.public static BranchStatusProto forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<BranchStatusProto> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static BranchStatusProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Seata. All rights reserved.