Enum Class WaitForFailurePolicy
- All Implemented Interfaces:
Serializable, Comparable<WaitForFailurePolicy>, Constable
Controls what happens after a Step's wait-for method exhausts its retry policy.
Set this value with StepOptions.Builder.waitForFailure. Proceeding calls
Step.execute(Context, Object) after the wait-for failure, allowing user code to inspect
Context.waitForMethodFailed() and recover explicitly. This policy does not change
durability selection: a method override takes precedence over the Flow configuration, followed by
the synchronous server default.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic WaitForFailurePolicyReturns the enum constant of this class with the specified name.static WaitForFailurePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAIL_FLOW
Fails the Flow when the wait-for method cannot complete. -
PROCEED
Continues to the execute method after recording the wait-for failure.Durability follows the normal method, Flow, and server-default precedence.
-
-
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
-