public static enum ReadPolicy.Consistency extends java.lang.Enum<ReadPolicy.Consistency>
Consistency for reads allows you to decide whether
freshness or availability is more important.| Enum Constant and Description |
|---|
EVENTUAL
Selects availability over freshness.
|
STRONG
Selects freshness over availability.
|
| Modifier and Type | Method and Description |
|---|---|
static ReadPolicy.Consistency |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadPolicy.Consistency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadPolicy.Consistency STRONG
public static final ReadPolicy.Consistency EVENTUAL
public static ReadPolicy.Consistency[] values()
for (ReadPolicy.Consistency c : ReadPolicy.Consistency.values()) System.out.println(c);
public static ReadPolicy.Consistency valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null