Package io.dapr.durabletask
Class TaskOptions.Builder
java.lang.Object
io.dapr.durabletask.TaskOptions.Builder
- Enclosing class:
- TaskOptions
Builder for creating
TaskOptions instances.-
Method Summary
Modifier and TypeMethodDescriptionSets the app ID for cross-app workflow routing.build()Builds a newTaskOptionsinstance with the configured values.retryHandler(RetryHandler retryHandler) Sets the retry handler for the task options.retryPolicy(RetryPolicy retryPolicy) Sets the retry policy for the task options.
-
Method Details
-
retryPolicy
Sets the retry policy for the task options.- Parameters:
retryPolicy- the retry policy to use- Returns:
- this builder instance for method chaining
-
retryHandler
Sets the retry handler for the task options.- Parameters:
retryHandler- the retry handler to use- Returns:
- this builder instance for method chaining
-
appID
Sets the app ID for cross-app workflow routing.- Parameters:
appID- the app ID to use- Returns:
- this builder instance for method chaining
-
build
Builds a newTaskOptionsinstance with the configured values.- Returns:
- a new TaskOptions instance
-