Enum CoreReadPreference

java.lang.Object
java.lang.Enum<CoreReadPreference>
com.couchbase.client.core.api.kv.CoreReadPreference
All Implemented Interfaces:
Serializable, Comparable<CoreReadPreference>

public enum CoreReadPreference extends Enum<CoreReadPreference>
  • Enum Constant Details

    • NO_PREFERENCE

      public static final CoreReadPreference NO_PREFERENCE
    • PREFERRED_SERVER_GROUP

      public static final CoreReadPreference PREFERRED_SERVER_GROUP
    • PREFERRED_SERVER_GROUP_OR_ALL_AVAILABLE

      public static final CoreReadPreference PREFERRED_SERVER_GROUP_OR_ALL_AVAILABLE
  • Method Details

    • values

      public static CoreReadPreference[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CoreReadPreference valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null