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
Policy for how audit handler failures should be treated.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFail the entire operation if the handler fails.Log the failure and continue with the operation (default). -
Method Summary
Modifier and TypeMethodDescriptionstatic AuditHandlerFailurePolicyReturns the enum constant of this class with the specified name.static AuditHandlerFailurePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOG_AND_CONTINUE
Log the failure and continue with the operation (default). The original DML operation is NOT affected. -
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
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
-