public enum TransactionDurabilityLevel extends java.lang.Enum<TransactionDurabilityLevel>
Enum Constant and Description |
---|
MAJORITY
Wait until each write is available in-memory on a majority of configured replicas, before continuing.
|
MAJORITY_AND_PERSIST_TO_ACTIVE
Wait until each write is available in-memory on a majority of configured replicas, and also persisted to disk
on the active node, before continuing.
|
NONE
Durability settings are disabled.
|
PERSIST_TO_MAJORITY
Wait until each write is both available in-memory and persisted to disk on a majority of configured replicas,
and also, before continuing.
|
Modifier and Type | Method and Description |
---|---|
byte |
code() |
static TransactionDurabilityLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionDurabilityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionDurabilityLevel NONE
public static final TransactionDurabilityLevel MAJORITY
public static final TransactionDurabilityLevel MAJORITY_AND_PERSIST_TO_ACTIVE
public static final TransactionDurabilityLevel PERSIST_TO_MAJORITY
public static TransactionDurabilityLevel[] values()
for (TransactionDurabilityLevel c : TransactionDurabilityLevel.values()) System.out.println(c);
public static TransactionDurabilityLevel 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 code()