Package com.aerospike.client.policy
Enum Class ReadModeSC
- All Implemented Interfaces:
Serializable,Comparable<ReadModeSC>,Constable
Read policy for SC (strong consistency) namespaces.
Determines SC read consistency options.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient may read from master or any full (non-migrating) replica.Client may read from master or any full (non-migrating) replica or from unavailable partitions.Ensures all clients will only see an increasing sequence of record versions.Ensures this client will only see an increasing sequence of record versions. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReadModeSCReturns the enum constant of this class with the specified name.static ReadModeSC[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SESSION
Ensures this client will only see an increasing sequence of record versions. Client only reads from master. This is the default. -
LINEARIZE
Ensures all clients will only see an increasing sequence of record versions. Client only reads from master. -
ALLOW_REPLICA
Client may read from master or any full (non-migrating) replica. Increasing sequence of record versions is not guaranteed. -
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
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
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 nameNullPointerException- if the argument is null
-