Enum Class Config.PaxosVariant

java.lang.Object
java.lang.Enum<Config.PaxosVariant>
org.apache.cassandra.config.Config.PaxosVariant
All Implemented Interfaces:
Serializable, Comparable<Config.PaxosVariant>, Constable
Enclosing class:
Config

public static enum Config.PaxosVariant extends Enum<Config.PaxosVariant>
The variants of paxos implementation and semantics supported by Cassandra.
  • Enum Constant Details

    • 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 Details

    • values

      public static Config.PaxosVariant[] 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

      public static Config.PaxosVariant valueOf(String name)
      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 name
      NullPointerException - if the argument is null