Enum Class ReadModeAP

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

public enum ReadModeAP extends Enum<ReadModeAP>
Read policy for AP (availability) namespaces.

How duplicates should be consulted in a read operation. Only makes a difference during migrations and only applicable in AP mode.

  • Enum Constant Details

    • ONE

      public static final ReadModeAP ONE
      Involve single node in the read operation.
    • ALL

      public static final ReadModeAP ALL
      Involve all duplicates in the read operation.
  • Method Details

    • values

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