Share via


TaskOptions Class

  • java.lang.Object
    • com.microsoft.durabletask.TaskOptions

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 object from a RetryHandler.

TaskOptions(RetryPolicy retryPolicy)

Creates a new TaskOptions object from a RetryPolicy.

Method Summary

Modifier and Type Method and Description
RetryHandler getRetryHandler()

Gets the configured RetryHandler value or null if none was configured.

RetryPolicy getRetryPolicy()

Gets the configured RetryPolicy value or null if none was configured.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TaskOptions

public TaskOptions(RetryHandler retryHandler)

Creates a new TaskOptions object from a RetryHandler.

Parameters:

retryHandler - the retry handler to use in the new TaskOptions object.

TaskOptions

public TaskOptions(RetryPolicy retryPolicy)

Creates a new TaskOptions object from a RetryPolicy.

Parameters:

retryPolicy - the retry policy to use in the new TaskOptions object.

Method Details

getRetryHandler

public RetryHandler getRetryHandler()

Gets the configured RetryHandler value or null if none was configured.

Returns:

the configured retry handler.

getRetryPolicy

public RetryPolicy getRetryPolicy()

Gets the configured RetryPolicy value or null if none was configured.

Returns:

the configured retry policy

Applies to