TaskOptions Class
- java.
lang. Object - com.
microsoft. durabletask. TaskOptions
- com.
public final class TaskOptions
Options that can be used to control the behavior of orchestrator and activity task execution.
Constructor Summary
| Constructor | Description |
|---|---|
| TaskOptions(RetryHandler retryHandler) |
Creates a new |
| TaskOptions(RetryPolicy retryPolicy) |
Creates a new |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Retry |
getRetryHandler()
Gets the configured RetryHandler value or |
|
Retry |
getRetryPolicy()
Gets the configured RetryPolicy value or |
Methods inherited from java.lang.Object
Constructor Details
TaskOptions
public TaskOptions(RetryHandler retryHandler)
Creates a new TaskOptions object from a RetryHandler.
Parameters:
TaskOptions object.
TaskOptions
public TaskOptions(RetryPolicy retryPolicy)
Creates a new TaskOptions object from a RetryPolicy.
Parameters:
TaskOptions object.
Method Details
getRetryHandler
public RetryHandler getRetryHandler()
Gets the configured RetryHandler value or null if none was configured.
Returns:
getRetryPolicy
public RetryPolicy getRetryPolicy()
Gets the configured RetryPolicy value or null if none was configured.
Returns: