Enum JeBackendCfgDefn.DbDurability
- java.lang.Object
-
- java.lang.Enum<JeBackendCfgDefn.DbDurability>
-
- org.forgerock.opendj.server.config.meta.JeBackendCfgDefn.DbDurability
-
- All Implemented Interfaces:
Serializable
,Comparable<JeBackendCfgDefn.DbDurability>
- Enclosing class:
- JeBackendCfgDefn
public static enum JeBackendCfgDefn.DbDurability extends Enum<JeBackendCfgDefn.DbDurability>
Defines the set of permissible values for the "db-durability" property.Configures the durability level that will be used when committing a transaction.
High levels of durability offer a greater guarantee that the transaction is persisted to disk, but trade that off for lower performance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static JeBackendCfgDefn.DbDurability
valueOf(String name)
Returns the enum constant of this type with the specified name.static JeBackendCfgDefn.DbDurability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HIGH
public static final JeBackendCfgDefn.DbDurability HIGH
Write and synchronously flush the log on transaction commit. Transactions exhibit full durability and will not be lost if the application or operating system fails.
-
LOW
public static final JeBackendCfgDefn.DbDurability LOW
Do not write or synchronously flush the log on transaction commit. Database integrity will be maintained, but if the application or system fails, it is possible some number of the most recently committed transactions may be undone (lost) during recovery.
-
MEDIUM
public static final JeBackendCfgDefn.DbDurability MEDIUM
Write but do not synchronously flush the log on transaction commit. Database integrity will be maintained, but if the operating system fails, it is possible some number of the most recently committed transactions may be undone (lost) during recovery.
-
-
Method Detail
-
values
public static JeBackendCfgDefn.DbDurability[] 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 (JeBackendCfgDefn.DbDurability c : JeBackendCfgDefn.DbDurability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JeBackendCfgDefn.DbDurability 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<JeBackendCfgDefn.DbDurability>
-
-