Enum Class FsyncPolicy
- All Implemented Interfaces:
Serializable, Comparable<FsyncPolicy>, Constable
Durable-log sync policy.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBatch storage sync across appends.Force storage sync when the log closes.Development only; relies on OS buffering.Force storage sync after every append. -
Method Summary
Modifier and TypeMethodDescriptionstatic FsyncPolicyReturns the enum constant of this class with the specified name.static FsyncPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OS_BUFFERED
Development only; relies on OS buffering. -
PER_APPEND
Force storage sync after every append. -
GROUP_COMMIT
Batch storage sync across appends. -
ON_CLOSE
Force storage sync when the log closes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-