public enum Consistency extends java.lang.Enum<Consistency>
| Enum Constant and Description |
|---|
ALL |
ANY |
EACH_QUORUM |
LOCAL_ONE |
LOCAL_QUORUM |
LOCAL_SERIAL |
ONE |
QUORUM |
SERIAL |
THREE |
TWO |
| Modifier and Type | Method and Description |
|---|---|
static Consistency |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Consistency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Consistency ANY
public static final Consistency ONE
public static final Consistency TWO
public static final Consistency THREE
public static final Consistency QUORUM
public static final Consistency ALL
public static final Consistency LOCAL_QUORUM
public static final Consistency EACH_QUORUM
public static final Consistency SERIAL
public static final Consistency LOCAL_SERIAL
public static final Consistency LOCAL_ONE
public static Consistency[] values()
for (Consistency c : Consistency.values()) System.out.println(c);
public static 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