Enum Class LogIntegrityPolicy

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

public enum LogIntegrityPolicy extends Enum<LogIntegrityPolicy>
Record integrity policy.
  • Enum Constant Details

    • CHECKSUM_ONLY

      public static final LogIntegrityPolicy CHECKSUM_ONLY
      CRC32 checksum per record.
    • CHECKSUM_AND_HASH_CHAIN

      public static final LogIntegrityPolicy CHECKSUM_AND_HASH_CHAIN
      CRC32 checksum plus hash-chain metadata.
  • Method Details

    • values

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