public enum WriteConsistencyLevel extends Enum<WriteConsistencyLevel>
Modifier and Type | Method and Description |
---|---|
static WriteConsistencyLevel |
fromId(byte value) |
static WriteConsistencyLevel |
fromString(String value) |
byte |
id() |
static WriteConsistencyLevel |
valueOf(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(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 byte id()
public static WriteConsistencyLevel fromId(byte value)
public static WriteConsistencyLevel fromString(String value)
Copyright © 2009–2017. All rights reserved.