public static enum Config.PaxosVariant extends java.lang.Enum<Config.PaxosVariant>
Enum Constant and Description |
---|
v1
v1 Paxos lacks most optimisations.
|
v1_without_linearizable_reads_or_rejected_writes
v1 Paxos lacks most optimisations.
|
v2
v2 Paxos.
|
v2_without_linearizable_reads
v2 Paxos.
|
v2_without_linearizable_reads_or_rejected_writes
v2 Paxos.
|
Modifier and Type | Method and Description |
---|---|
static Config.PaxosVariant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Config.PaxosVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Config.PaxosVariant v1_without_linearizable_reads_or_rejected_writes
public static final Config.PaxosVariant v1
public static final Config.PaxosVariant v2_without_linearizable_reads
public static final Config.PaxosVariant v2_without_linearizable_reads_or_rejected_writes
public static final Config.PaxosVariant v2
public static Config.PaxosVariant[] values()
for (Config.PaxosVariant c : Config.PaxosVariant.values()) System.out.println(c);
public static Config.PaxosVariant valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2009-2022 The Apache Software Foundation