Enum Class DistributedList.ConsistencyMode

java.lang.Object
java.lang.Enum<DistributedList.ConsistencyMode>
com.loomcache.server.datastructures.DistributedList.ConsistencyMode
All Implemented Interfaces:
Serializable, Comparable<DistributedList.ConsistencyMode>, Constable
Enclosing class:
DistributedList<E>

public static enum DistributedList.ConsistencyMode extends Enum<DistributedList.ConsistencyMode>
Consistency mode for a distributed list.
  • CP — Linearizable via Raft consensus (default). All operations go through the Raft log. Reads and writes are strongly consistent.
  • AP — Primary-backup replication. Faster but eventually consistent. Writes replicate asynchronously to backup nodes.
Since:
1.2
  • Enum Constant Details

  • Method Details

    • values

      public static DistributedList.ConsistencyMode[] 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 DistributedList.ConsistencyMode 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