Class Workflow.RecoverStrategy<T>

Object
akka.javasdk.workflow.Workflow.RecoverStrategy<T>
Enclosing class:
Workflow<S>

public static class Workflow.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 Workflow.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 Workflow.RecoverStrategy<?> failoverTo(String stepName)
      In case of a step failure don't retry but transition to a given step name.
    • failoverTo

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