Enum Class MissingProtectedDataPolicy
java.lang.Object
java.lang.Enum<MissingProtectedDataPolicy>
io.fluxzero.sdk.publishing.dataprotection.MissingProtectedDataPolicy
- All Implemented Interfaces:
Serializable, Comparable<MissingProtectedDataPolicy>, Constable
Determines how a handler responds when a message references protected data that is no longer available.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInherit the policy from the consumer, application configuration, or SDK default.Fail the handler invocation with aMissingProtectedDataException.Invoke the handler with the unavailable protected fields set tonull.Skip the handler invocation and continue message tracking normally.Log a warning and invoke the handler with the unavailable protected fields set tonull. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MissingProtectedDataPolicyParses a configured policy value case-insensitively.static MissingProtectedDataPolicyReturns the enum constant of this class with the specified name.static MissingProtectedDataPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Inherit the policy from the consumer, application configuration, or SDK default. -
HANDLE
Invoke the handler with the unavailable protected fields set tonull. -
WARN
Log a warning and invoke the handler with the unavailable protected fields set tonull. -
SKIP
Skip the handler invocation and continue message tracking normally. -
FAIL
Fail the handler invocation with aMissingProtectedDataException.
-
-
Field Details
-
PROPERTY
Application property that configures the default missing protected data policy.- See Also:
-
-
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
-
parse
Parses a configured policy value case-insensitively.- Parameters:
value- configured value- Returns:
- parsed policy
-