Class WorkflowTaskRetryPolicy

java.lang.Object
io.dapr.workflows.WorkflowTaskRetryPolicy

public final class WorkflowTaskRetryPolicy extends Object
  • Constructor Details

    • WorkflowTaskRetryPolicy

      public WorkflowTaskRetryPolicy(Integer maxNumberOfAttempts, Duration firstRetryInterval, Double backoffCoefficient, Duration maxRetryInterval, Duration retryTimeout)
      Constructor for WorkflowTaskRetryPolicy.
      Parameters:
      maxNumberOfAttempts - Maximum number of attempts to retry the workflow.
      firstRetryInterval - Interval to wait before the first retry.
      backoffCoefficient - Coefficient to increase the retry interval.
      maxRetryInterval - Maximum interval to wait between retries.
      retryTimeout - Timeout for the whole retry process.
  • Method Details

    • getMaxNumberOfAttempts

      public int getMaxNumberOfAttempts()
    • getFirstRetryInterval

      public Duration getFirstRetryInterval()
    • getBackoffCoefficient

      public double getBackoffCoefficient()
    • getMaxRetryInterval

      public Duration getMaxRetryInterval()
    • getRetryTimeout

      public Duration getRetryTimeout()
    • newBuilder

      public static WorkflowTaskRetryPolicy.Builder newBuilder()