Enum Class ReadModeSC

java.lang.Object
java.lang.Enum<ReadModeSC>
com.aerospike.client.policy.ReadModeSC
All Implemented Interfaces:
Serializable, Comparable<ReadModeSC>, Constable

public enum ReadModeSC extends Enum<ReadModeSC>
Read policy for SC (strong consistency) namespaces.

Determines SC read consistency options.

  • Enum Constant Details

    • SESSION

      public static final ReadModeSC SESSION
      Ensures this client will only see an increasing sequence of record versions. Client only reads from master. This is the default.
    • LINEARIZE

      public static final ReadModeSC LINEARIZE
      Ensures all clients will only see an increasing sequence of record versions. Client only reads from master.
    • ALLOW_REPLICA

      public static final ReadModeSC ALLOW_REPLICA
      Client may read from master or any full (non-migrating) replica. Increasing sequence of record versions is not guaranteed.
    • ALLOW_UNAVAILABLE

      public static final ReadModeSC ALLOW_UNAVAILABLE
      Client may read from master or any full (non-migrating) replica or from unavailable partitions. Increasing sequence of record versions is not guaranteed.
  • Method Details

    • values

      public static ReadModeSC[] 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 ReadModeSC 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