Enum 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.

    • 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 name
        NullPointerException - if the argument is null