Package org.apache.cassandra.config
Enum Class Config.PaxosVariant
- All Implemented Interfaces:
Serializable,Comparable<Config.PaxosVariant>,Constable
- Enclosing class:
- Config
The variants of paxos implementation and semantics supported by Cassandra.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionv1 Paxos lacks most optimisations.v1 Paxos lacks most optimisations.v2 Paxos.v2 Paxos.v2 Paxos. -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.PaxosVariantReturns the enum constant of this class with the specified name.static Config.PaxosVariant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
v1 Paxos lacks most optimisations. Expect 4RTs for a write and 3RTs for a read. -
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
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
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-