public enum Durability extends Enum<Durability>
Enum Constant and Description |
---|
DEFAULT
Use the durability as specified by the table or system configuration.
|
FLUSH
Write mutations to the write-ahead log, and ensure the data is stored on remote servers, but perhaps not on persistent storage.
|
LOG
Write mutations the the write-ahead log.
|
NONE
Don't bother writing mutations to the write-ahead log.
|
SYNC
Write mutations to the write-ahead log, and ensure the data is saved to persistent storage.
|
Modifier and Type | Method and Description |
---|---|
static Durability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Durability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Durability DEFAULT
public static final Durability NONE
public static final Durability LOG
public static final Durability FLUSH
public static final Durability SYNC
public static Durability[] values()
for (Durability c : Durability.values()) System.out.println(c);
public static Durability 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 nullCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.