public static enum RaftServerpb.ExtraMessageType extends Enum<RaftServerpb.ExtraMessageType> implements com.google.protobuf.ProtocolMessageEnum
raft_serverpb.ExtraMessageType
Enum Constant and Description |
---|
MsgCheckStalePeer
MsgCheckStalePeer = 2; |
MsgCheckStalePeerResponse
MsgCheckStalePeerResponse = 3; |
MsgHibernateRequest
If leader is going to sleep, it will send requests to all its followers
to make sure they all agree to sleep.
|
MsgHibernateResponse
MsgHibernateResponse = 5; |
MsgRegionWakeUp
MsgRegionWakeUp = 0; |
MsgWantRollbackMerge
MsgWantRollbackMerge = 1; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
MsgCheckStalePeer_VALUE
MsgCheckStalePeer = 2; |
static int |
MsgCheckStalePeerResponse_VALUE
MsgCheckStalePeerResponse = 3; |
static int |
MsgHibernateRequest_VALUE
If leader is going to sleep, it will send requests to all its followers
to make sure they all agree to sleep.
|
static int |
MsgHibernateResponse_VALUE
MsgHibernateResponse = 5; |
static int |
MsgRegionWakeUp_VALUE
MsgRegionWakeUp = 0; |
static int |
MsgWantRollbackMerge_VALUE
MsgWantRollbackMerge = 1; |
Modifier and Type | Method and Description |
---|---|
static RaftServerpb.ExtraMessageType |
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<RaftServerpb.ExtraMessageType> |
internalGetValueMap() |
static RaftServerpb.ExtraMessageType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RaftServerpb.ExtraMessageType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RaftServerpb.ExtraMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftServerpb.ExtraMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftServerpb.ExtraMessageType MsgRegionWakeUp
MsgRegionWakeUp = 0;
public static final RaftServerpb.ExtraMessageType MsgWantRollbackMerge
MsgWantRollbackMerge = 1;
public static final RaftServerpb.ExtraMessageType MsgCheckStalePeer
MsgCheckStalePeer = 2;
public static final RaftServerpb.ExtraMessageType MsgCheckStalePeerResponse
MsgCheckStalePeerResponse = 3;
public static final RaftServerpb.ExtraMessageType MsgHibernateRequest
If leader is going to sleep, it will send requests to all its followers to make sure they all agree to sleep.
MsgHibernateRequest = 4;
public static final RaftServerpb.ExtraMessageType MsgHibernateResponse
MsgHibernateResponse = 5;
public static final RaftServerpb.ExtraMessageType UNRECOGNIZED
public static final int MsgRegionWakeUp_VALUE
MsgRegionWakeUp = 0;
public static final int MsgWantRollbackMerge_VALUE
MsgWantRollbackMerge = 1;
public static final int MsgCheckStalePeer_VALUE
MsgCheckStalePeer = 2;
public static final int MsgCheckStalePeerResponse_VALUE
MsgCheckStalePeerResponse = 3;
public static final int MsgHibernateRequest_VALUE
If leader is going to sleep, it will send requests to all its followers to make sure they all agree to sleep.
MsgHibernateRequest = 4;
public static final int MsgHibernateResponse_VALUE
MsgHibernateResponse = 5;
public static RaftServerpb.ExtraMessageType[] values()
for (RaftServerpb.ExtraMessageType c : RaftServerpb.ExtraMessageType.values()) System.out.println(c);
public static RaftServerpb.ExtraMessageType 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 RaftServerpb.ExtraMessageType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static RaftServerpb.ExtraMessageType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RaftServerpb.ExtraMessageType> 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 RaftServerpb.ExtraMessageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.