public enum WriteConsistencyLevel extends java.lang.Enum<WriteConsistencyLevel>
Modifier and Type | Method and Description |
---|---|
static WriteConsistencyLevel |
fromId(byte value) |
static WriteConsistencyLevel |
fromString(java.lang.String value) |
byte |
id() |
static WriteConsistencyLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WriteConsistencyLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteConsistencyLevel DEFAULT
public static final WriteConsistencyLevel ONE
public static final WriteConsistencyLevel QUORUM
public static final WriteConsistencyLevel ALL
public static WriteConsistencyLevel[] values()
for (WriteConsistencyLevel c : WriteConsistencyLevel.values()) System.out.println(c);
public static WriteConsistencyLevel 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 nullpublic byte id()
public static WriteConsistencyLevel fromId(byte value)
public static WriteConsistencyLevel fromString(java.lang.String value)