Class WorkflowEntity.RecoverStrategy<T>

Object
kalix.javasdk.workflowentity.WorkflowEntity.RecoverStrategy<T>
Enclosing class:
WorkflowEntity<S>

public static class WorkflowEntity.RecoverStrategy<T> extends Object
  • Field Details

    • maxRetries

      public final int maxRetries
    • failoverStepName

      public final String failoverStepName
    • failoverStepInput

      public final Optional<T> failoverStepInput
  • Constructor Details

    • RecoverStrategy

      public RecoverStrategy(int maxRetries, String failoverStepName, Optional<T> failoverStepInput)
  • Method Details

    • maxRetries

      public static WorkflowEntity.RecoverStrategy.MaxRetries 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.
    • failoverTo

      public static WorkflowEntity.RecoverStrategy failoverTo(String stepName)
      In case of a step failure don't retry but transition to a given step name.
    • failoverTo

      public <T> WorkflowEntity.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.