Package io.dapr.workflows
Class WorkflowTaskRetryPolicy
java.lang.Object
io.dapr.workflows.WorkflowTaskRetryPolicy
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleint
-
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
-
getBackoffCoefficient
public double getBackoffCoefficient() -
getMaxRetryInterval
-
getRetryTimeout
-
newBuilder
-