Package com.couchbase.client.core.msg.kv
Enum DurabilityLevel
- java.lang.Object
-
- java.lang.Enum<DurabilityLevel>
-
- com.couchbase.client.core.msg.kv.DurabilityLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<DurabilityLevel>
public enum DurabilityLevel extends Enum<DurabilityLevel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAJORITY
MAJORITY_AND_PERSIST_ON_MASTER
NONE
PERSIST_TO_MAJORITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
code()
static DurabilityLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static DurabilityLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DurabilityLevel NONE
-
MAJORITY
public static final DurabilityLevel MAJORITY
-
MAJORITY_AND_PERSIST_ON_MASTER
public static final DurabilityLevel MAJORITY_AND_PERSIST_ON_MASTER
-
PERSIST_TO_MAJORITY
public static final DurabilityLevel PERSIST_TO_MAJORITY
-
-
Method Detail
-
values
public static DurabilityLevel[] 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 (DurabilityLevel c : DurabilityLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DurabilityLevel 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 nameNullPointerException
- if the argument is null
-
code
public byte code()
-
-