Package akka.javasdk.workflow
Class Workflow.RecoverStrategy<T>
Object
akka.javasdk.workflow.Workflow.RecoverStrategy<T>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Retry strategy without failover configuration -
Field Summary
-
Constructor Summary
ConstructorDescriptionRecoverStrategy
(int maxRetries, String failoverStepName, Optional<T> failoverStepInput) -
Method Summary
Modifier and TypeMethodDescriptionstatic Workflow.RecoverStrategy
<?> failoverTo
(String stepName) In case of a step failure don't retry but transition to a given step name.static <T> Workflow.RecoverStrategy
<T> failoverTo
(String stepName, T input) In case of a step failure don't retry but transition to a given step name with the input parameter.maxRetries
(int maxRetries) Set the number of retires for a failed step,maxRetries
equals 0 means that the step won't retry in case of failure.
-
Field Details
-
maxRetries
public final int maxRetries -
failoverStepName
-
failoverStepInput
-
-
Constructor Details
-
RecoverStrategy
-
-
Method Details
-
maxRetries
Set the number of retires for a failed step,maxRetries
equals 0 means that the step won't retry in case of failure. -
failoverTo
In case of a step failure don't retry but transition to a given step name. -
failoverTo
In case of a step failure don't retry but transition to a given step name with the input parameter.
-