public enum ReadModeSC extends Enum<ReadModeSC>
Determines SC read consistency options.
Enum Constant and Description |
---|
ALLOW_REPLICA
Server may read from master or any full (non-migrating) replica.
|
ALLOW_UNAVAILABLE
Server may read from master or any full (non-migrating) replica or from unavailable
partitions.
|
LINEARIZE
Ensures ALL clients will only see an increasing sequence of record versions.
|
SESSION
Ensures this client will only see an increasing sequence of record versions.
|
Modifier and Type | Method and Description |
---|---|
static ReadModeSC |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadModeSC[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadModeSC SESSION
public static final ReadModeSC LINEARIZE
public static final ReadModeSC ALLOW_REPLICA
public static final ReadModeSC ALLOW_UNAVAILABLE
public static ReadModeSC[] values()
for (ReadModeSC c : ReadModeSC.values()) System.out.println(c);
public static ReadModeSC valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2021 Aerospike, Inc. All rights reserved.