Package kalix.javasdk.workflow
Class AbstractWorkflow.RecoverStrategy<T>
Object
kalix.javasdk.workflow.AbstractWorkflow.RecoverStrategy<T>
- Enclosing class:
AbstractWorkflow<S>
-
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 AbstractWorkflow.RecoverStrategy
<?> failoverTo
(String stepName) In case of a step failure don't retry but transition to a given step name.static <T> AbstractWorkflow.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.
-