Enum Class FsyncPolicy

java.lang.Object
java.lang.Enum<FsyncPolicy>
org.j7m.middleware.api.durablelog.FsyncPolicy
All Implemented Interfaces:
Serializable, Comparable<FsyncPolicy>, Constable

public enum FsyncPolicy extends Enum<FsyncPolicy>
Durable-log sync policy.
  • Enum Constant Details

    • OS_BUFFERED

      public static final FsyncPolicy OS_BUFFERED
      Development only; relies on OS buffering.
    • PER_APPEND

      public static final FsyncPolicy PER_APPEND
      Force storage sync after every append.
    • GROUP_COMMIT

      public static final FsyncPolicy GROUP_COMMIT
      Batch storage sync across appends.
    • ON_CLOSE

      public static final FsyncPolicy ON_CLOSE
      Force storage sync when the log closes.
  • Method Details

    • values

      public static FsyncPolicy[] 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

      public static FsyncPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null