public enum ConsistencyLevel extends Enum<ConsistencyLevel>
Enum Constant and Description |
---|
DEFAULT
The default consistency level afforded by the underlying storage backend
|
KEY_CONSISTENT
Consistency level which ensures that operations on a
KeyColumnValueStore are key-consistent. |
LOCAL_KEY_CONSISTENT
Consistency level which ensures that operations on a
KeyColumnValueStore are key-consistent with
respect to a local cluster where multiple local clusters form the entire (global) cluster. |
Modifier and Type | Method and Description |
---|---|
boolean |
isKeyConsistent() |
static ConsistencyLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistencyLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsistencyLevel DEFAULT
public static final ConsistencyLevel KEY_CONSISTENT
KeyColumnValueStore
are key-consistent.public static final ConsistencyLevel LOCAL_KEY_CONSISTENT
KeyColumnValueStore
are key-consistent with
respect to a local cluster where multiple local clusters form the entire (global) cluster.
In other words, KEY_CONSISTENT
ensures key consistency across the entire global cluster whereas this
is restricted to the local cluster.public static ConsistencyLevel[] values()
for (ConsistencyLevel c : ConsistencyLevel.values()) System.out.println(c);
public static ConsistencyLevel 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 nullpublic boolean isKeyConsistent()
Copyright © 2012–2017. All rights reserved.