Package io.dapr.workflows
Class WorkflowTaskRetryPolicy.Builder
java.lang.Object
io.dapr.workflows.WorkflowTaskRetryPolicy.Builder
- Enclosing class:
- WorkflowTaskRetryPolicy
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the WorkflowTaskRetryPolicy.setBackoffCoefficient(double backoffCoefficient) Set the backoff coefficient.setFirstRetryInterval(Duration firstRetryInterval) Set the interval to wait before the first retry.setMaxNumberOfAttempts(int maxNumberOfAttempts) Set the maximum number of attempts to retry the workflow.setMaxRetryInterval(Duration maxRetryInterval) Set the maximum interval to wait between retries.setRetryTimeout(Duration retryTimeout) Set the maximum retry timeout.
-
Method Details
-
build
Build the WorkflowTaskRetryPolicy.- Returns:
- WorkflowTaskRetryPolicy
-
setMaxNumberOfAttempts
Set the maximum number of attempts to retry the workflow.- Parameters:
maxNumberOfAttempts- Maximum number- Returns:
- This builder
-
setFirstRetryInterval
Set the interval to wait before the first retry.- Parameters:
firstRetryInterval- Interval- Returns:
- This builder
-
setBackoffCoefficient
Set the backoff coefficient.- Parameters:
backoffCoefficient- Double value- Returns:
- This builder
-
setMaxRetryInterval
Set the maximum interval to wait between retries.- Parameters:
maxRetryInterval- Maximum interval- Returns:
- This builder
-
setRetryTimeout
Set the maximum retry timeout.- Parameters:
retryTimeout- Maximum retry timeout- Returns:
- This builder
-