public static final class WorkflowOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(WorkflowOptions o) |
Modifier and Type | Method and Description |
---|---|
WorkflowOptions |
build() |
WorkflowOptions.Builder |
setChildPolicy(ChildPolicy childPolicy)
Specifies how children of this workflow react to this workflow death.
|
WorkflowOptions.Builder |
setCronSchedule(java.lang.String cronSchedule) |
WorkflowOptions.Builder |
setExecutionStartToCloseTimeout(java.time.Duration executionStartToCloseTimeout)
The time after which workflow execution is automatically terminated by Cadence service.
|
WorkflowOptions.Builder |
setRetryOptions(RetryOptions retryOptions) |
WorkflowOptions.Builder |
setTaskList(java.lang.String taskList)
Task list to use for decision tasks.
|
WorkflowOptions.Builder |
setTaskStartToCloseTimeout(java.time.Duration taskStartToCloseTimeout)
Maximum execution time of a single decision task.
|
WorkflowOptions.Builder |
setWorkflowId(java.lang.String workflowId)
Workflow id to use when starting.
|
WorkflowOptions.Builder |
setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
Specifies server behavior if a completed workflow with the same id exists.
|
WorkflowOptions |
validateBuildWithDefaults()
Validates that all required properties are set and fills all other with default parameters.
|
public Builder()
public Builder(WorkflowOptions o)
public WorkflowOptions.Builder setWorkflowId(java.lang.String workflowId)
public WorkflowOptions.Builder setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
public WorkflowOptions.Builder setExecutionStartToCloseTimeout(java.time.Duration executionStartToCloseTimeout)
public WorkflowOptions.Builder setTaskStartToCloseTimeout(java.time.Duration taskStartToCloseTimeout)
public WorkflowOptions.Builder setTaskList(java.lang.String taskList)
Worker
that hosts the workflow code.public WorkflowOptions.Builder setChildPolicy(ChildPolicy childPolicy)
public WorkflowOptions.Builder setRetryOptions(RetryOptions retryOptions)
public WorkflowOptions.Builder setCronSchedule(java.lang.String cronSchedule)
public WorkflowOptions build()
public WorkflowOptions validateBuildWithDefaults()