public static enum TiConfiguration.ReplicaRead extends Enum<TiConfiguration.ReplicaRead>
Enum Constant and Description |
---|
FOLLOWER |
LEADER |
LEADER_AND_FOLLOWER |
Modifier and Type | Method and Description |
---|---|
static TiConfiguration.ReplicaRead |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TiConfiguration.ReplicaRead[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TiConfiguration.ReplicaRead LEADER
public static final TiConfiguration.ReplicaRead FOLLOWER
public static final TiConfiguration.ReplicaRead LEADER_AND_FOLLOWER
public static TiConfiguration.ReplicaRead[] values()
for (TiConfiguration.ReplicaRead c : TiConfiguration.ReplicaRead.values()) System.out.println(c);
public static TiConfiguration.ReplicaRead 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 nullCopyright © 2024 PingCAP. All rights reserved.