Enum Class AuditHandlerFailurePolicy

java.lang.Object
java.lang.Enum<AuditHandlerFailurePolicy>
com.kingsrook.qqq.backend.core.model.metadata.audits.AuditHandlerFailurePolicy
All Implemented Interfaces:
Serializable, Comparable<AuditHandlerFailurePolicy>, Constable

public enum AuditHandlerFailurePolicy extends Enum<AuditHandlerFailurePolicy>
Policy for how audit handler failures should be treated.
  • Enum Constant Details

    • LOG_AND_CONTINUE

      public static final AuditHandlerFailurePolicy LOG_AND_CONTINUE
      Log the failure and continue with the operation (default). The original DML operation is NOT affected.
    • FAIL_OPERATION

      public static final AuditHandlerFailurePolicy FAIL_OPERATION
      Fail the entire operation if the handler fails. Use with caution - this can cause data loss if handlers are unreliable. ONLY supported for synchronous handlers.
  • Method Details

    • values

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