Package org.apache.cassandra.config
Enum Config.PaxosVariant
- java.lang.Object
-
- java.lang.Enum<Config.PaxosVariant>
-
- org.apache.cassandra.config.Config.PaxosVariant
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Config.PaxosVariant>
- Enclosing class:
- Config
public static enum Config.PaxosVariant extends java.lang.Enum<Config.PaxosVariant>
The variants of paxos implementation and semantics supported by Cassandra.
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
v1_without_linearizable_reads_or_rejected_writes
public static final Config.PaxosVariant v1_without_linearizable_reads_or_rejected_writes
v1 Paxos lacks most optimisations. Expect 4RTs for a write and 2RTs for a read. With legacy semantics for read/read and rejected write linearizability, i.e. not guaranteed.
-
v1
public static final Config.PaxosVariant v1
v1 Paxos lacks most optimisations. Expect 4RTs for a write and 3RTs for a read.
-
v2_without_linearizable_reads
public static final Config.PaxosVariant v2_without_linearizable_reads
v2 Paxos. With PaxosStatePurging.repaired safe to use ANY Commit consistency. Expect 2RTs for a write and 1RT for a read. With legacy semantics for read/read linearizability, i.e. not guaranteed.
-
v2_without_linearizable_reads_or_rejected_writes
public static final Config.PaxosVariant v2_without_linearizable_reads_or_rejected_writes
v2 Paxos. With PaxosStatePurging.repaired safe to use ANY Commit consistency. Expect 2RTs for a write and 1RT for a read. With legacy semantics for read/read and rejected write linearizability, i.e. not guaranteed.
-
v2
public static final Config.PaxosVariant v2
v2 Paxos. With PaxosStatePurging.repaired safe to use ANY Commit consistency. Expect 2RTs for a write, and either 1RT or 2RT for a read.
-
-
Method Detail
-
values
public static Config.PaxosVariant[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Config.PaxosVariant c : Config.PaxosVariant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Config.PaxosVariant valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-