me.prettyprint.hector.api
Enum HConsistencyLevel
java.lang.Object
java.lang.Enum<HConsistencyLevel>
me.prettyprint.hector.api.HConsistencyLevel
- All Implemented Interfaces:
- Serializable, Comparable<HConsistencyLevel>
public enum HConsistencyLevel
- extends Enum<HConsistencyLevel>
This is the Hector consistency level which is just a mirror of the thrift or avro consistency
levels.
- Author:
- zznate
ONE
public static final HConsistencyLevel ONE
TWO
public static final HConsistencyLevel TWO
THREE
public static final HConsistencyLevel THREE
QUORUM
public static final HConsistencyLevel QUORUM
ALL
public static final HConsistencyLevel ALL
ANY
public static final HConsistencyLevel ANY
EACH_QUORUM
public static final HConsistencyLevel EACH_QUORUM
LOCAL_QUORUM
public static final HConsistencyLevel LOCAL_QUORUM
values
public static HConsistencyLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HConsistencyLevel c : HConsistencyLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HConsistencyLevel valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2011. All Rights Reserved.