Enum Class ConsistencyLevel

java.lang.Object
java.lang.Enum<ConsistencyLevel>
com.gigaspaces.cluster.replication.ConsistencyLevel
All Implemented Interfaces:
Serializable, Comparable<ConsistencyLevel>, java.lang.constant.Constable

public enum ConsistencyLevel extends Enum<ConsistencyLevel>
Specifies consistency level for a modifying (replicated) operation
Since:
9.5.1
Author:
eitany
  • Enum Constant Details

    • ANY

      public static final ConsistencyLevel ANY
      Ensure that the modification has been updated in at least 1 member before responding to the client, otherwise the modification is rejected and a ConsistencyLevelViolationException is thrown. In a primary backup topology that member is the primary.
    • QUORUM

      public static final ConsistencyLevel QUORUM
      Ensure that the modification has been updated in at least N / 2 + 1 members before responding to the client, otherwise the modification is rejected and a ConsistencyLevelViolationException is thrown. In a primary backup topology one of the members is the primary.
    • ALL

      public static final ConsistencyLevel ALL
      Ensure that the modification has been updated in all members before responding to the client, otherwise the modification is rejected and a ConsistencyLevelViolationException is thrown.
  • Method Details

    • values

      public static ConsistencyLevel[] 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 ConsistencyLevel 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
    • getCode

      public byte getCode()
    • fromCode

      public static ConsistencyLevel fromCode(byte readByte)