public static enum ReplicationModepb.DRAutoSyncState extends Enum<ReplicationModepb.DRAutoSyncState> implements com.google.protobuf.ProtocolMessageEnum
replication_modepb.DRAutoSyncState
Enum Constant and Description |
---|
ASYNC
Raft logs need to sync to majority peers
|
ASYNC_WAIT
Wait for switching to ASYNC.
|
SYNC
Raft logs need to sync between different DCs
|
SYNC_RECOVER
Switching from ASYNC to SYNC mode
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ASYNC_VALUE
Raft logs need to sync to majority peers
|
static int |
ASYNC_WAIT_VALUE
Wait for switching to ASYNC.
|
static int |
SYNC_RECOVER_VALUE
Switching from ASYNC to SYNC mode
|
static int |
SYNC_VALUE
Raft logs need to sync between different DCs
|
Modifier and Type | Method and Description |
---|---|
static ReplicationModepb.DRAutoSyncState |
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<ReplicationModepb.DRAutoSyncState> |
internalGetValueMap() |
static ReplicationModepb.DRAutoSyncState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ReplicationModepb.DRAutoSyncState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ReplicationModepb.DRAutoSyncState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationModepb.DRAutoSyncState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicationModepb.DRAutoSyncState SYNC
Raft logs need to sync between different DCs
SYNC = 0;
public static final ReplicationModepb.DRAutoSyncState ASYNC_WAIT
Wait for switching to ASYNC. Stop sync raft logs between DCs.
ASYNC_WAIT = 1;
public static final ReplicationModepb.DRAutoSyncState ASYNC
Raft logs need to sync to majority peers
ASYNC = 2;
public static final ReplicationModepb.DRAutoSyncState SYNC_RECOVER
Switching from ASYNC to SYNC mode
SYNC_RECOVER = 3;
public static final ReplicationModepb.DRAutoSyncState UNRECOGNIZED
public static final int SYNC_VALUE
Raft logs need to sync between different DCs
SYNC = 0;
public static final int ASYNC_WAIT_VALUE
Wait for switching to ASYNC. Stop sync raft logs between DCs.
ASYNC_WAIT = 1;
public static final int ASYNC_VALUE
Raft logs need to sync to majority peers
ASYNC = 2;
public static final int SYNC_RECOVER_VALUE
Switching from ASYNC to SYNC mode
SYNC_RECOVER = 3;
public static ReplicationModepb.DRAutoSyncState[] values()
for (ReplicationModepb.DRAutoSyncState c : ReplicationModepb.DRAutoSyncState.values()) System.out.println(c);
public static ReplicationModepb.DRAutoSyncState 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 ReplicationModepb.DRAutoSyncState valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ReplicationModepb.DRAutoSyncState forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ReplicationModepb.DRAutoSyncState> 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 ReplicationModepb.DRAutoSyncState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.