public static enum Eraftpb.ConfChangeTransition extends Enum<Eraftpb.ConfChangeTransition> implements com.google.protobuf.ProtocolMessageEnum
eraftpb.ConfChangeTransition
Enum Constant and Description |
---|
Auto
Automatically use the simple protocol if possible, otherwise fall back
to ConfChangeType::Implicit.
|
Explicit
Use joint consensus and remain in the joint configuration until the
application proposes a no-op configuration change.
|
Implicit
Use joint consensus unconditionally, and transition out of them
automatically (by proposing a zero configuration change).
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
Auto_VALUE
Automatically use the simple protocol if possible, otherwise fall back
to ConfChangeType::Implicit.
|
static int |
Explicit_VALUE
Use joint consensus and remain in the joint configuration until the
application proposes a no-op configuration change.
|
static int |
Implicit_VALUE
Use joint consensus unconditionally, and transition out of them
automatically (by proposing a zero configuration change).
|
Modifier and Type | Method and Description |
---|---|
static Eraftpb.ConfChangeTransition |
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<Eraftpb.ConfChangeTransition> |
internalGetValueMap() |
static Eraftpb.ConfChangeTransition |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Eraftpb.ConfChangeTransition |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Eraftpb.ConfChangeTransition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Eraftpb.ConfChangeTransition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Eraftpb.ConfChangeTransition Auto
Automatically use the simple protocol if possible, otherwise fall back to ConfChangeType::Implicit. Most applications will want to use this.
Auto = 0;
public static final Eraftpb.ConfChangeTransition Implicit
Use joint consensus unconditionally, and transition out of them automatically (by proposing a zero configuration change). This option is suitable for applications that want to minimize the time spent in the joint configuration and do not store the joint configuration in the state machine (outside of InitialState).
Implicit = 1;
public static final Eraftpb.ConfChangeTransition Explicit
Use joint consensus and remain in the joint configuration until the application proposes a no-op configuration change. This is suitable for applications that want to explicitly control the transitions, for example to use a custom payload (via the Context field).
Explicit = 2;
public static final Eraftpb.ConfChangeTransition UNRECOGNIZED
public static final int Auto_VALUE
Automatically use the simple protocol if possible, otherwise fall back to ConfChangeType::Implicit. Most applications will want to use this.
Auto = 0;
public static final int Implicit_VALUE
Use joint consensus unconditionally, and transition out of them automatically (by proposing a zero configuration change). This option is suitable for applications that want to minimize the time spent in the joint configuration and do not store the joint configuration in the state machine (outside of InitialState).
Implicit = 1;
public static final int Explicit_VALUE
Use joint consensus and remain in the joint configuration until the application proposes a no-op configuration change. This is suitable for applications that want to explicitly control the transitions, for example to use a custom payload (via the Context field).
Explicit = 2;
public static Eraftpb.ConfChangeTransition[] values()
for (Eraftpb.ConfChangeTransition c : Eraftpb.ConfChangeTransition.values()) System.out.println(c);
public static Eraftpb.ConfChangeTransition 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 final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Eraftpb.ConfChangeTransition valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Eraftpb.ConfChangeTransition forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Eraftpb.ConfChangeTransition> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Eraftpb.ConfChangeTransition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.