Package com.microsoft.durabletask
Class TaskOptions
- java.lang.Object
-
- com.microsoft.durabletask.TaskOptions
-
public final class TaskOptions extends java.lang.ObjectOptions that can be used to control the behavior of orchestrator and activity task execution.
-
-
Constructor Summary
Constructors Constructor Description TaskOptions(RetryHandler retryHandler)Creates a newTaskOptionsobject from aRetryHandler.TaskOptions(RetryPolicy retryPolicy)Creates a newTaskOptionsobject from aRetryPolicy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryHandlergetRetryHandler()Gets the configuredRetryHandlervalue ornullif none was configured.RetryPolicygetRetryPolicy()Gets the configuredRetryPolicyvalue ornullif none was configured.
-
-
-
Constructor Detail
-
TaskOptions
public TaskOptions(RetryPolicy retryPolicy)
Creates a newTaskOptionsobject from aRetryPolicy.- Parameters:
retryPolicy- the retry policy to use in the newTaskOptionsobject.
-
TaskOptions
public TaskOptions(RetryHandler retryHandler)
Creates a newTaskOptionsobject from aRetryHandler.- Parameters:
retryHandler- the retry handler to use in the newTaskOptionsobject.
-
-
Method Detail
-
getRetryPolicy
public RetryPolicy getRetryPolicy()
Gets the configuredRetryPolicyvalue ornullif none was configured.- Returns:
- the configured retry policy
-
getRetryHandler
public RetryHandler getRetryHandler()
Gets the configuredRetryHandlervalue ornullif none was configured.- Returns:
- the configured retry handler.
-
-