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 |
setContextPropagators(java.util.List<ContextPropagator> contextPropagators)
Specifies the list of context propagators to use during this workflow.
|
WorkflowOptions.Builder |
setCronSchedule(java.lang.String cronSchedule) |
WorkflowOptions.Builder |
setDelayStart(java.time.Duration delayStart) |
WorkflowOptions.Builder |
setExecutionStartToCloseTimeout(java.time.Duration executionStartToCloseTimeout)
The time after which workflow execution is automatically terminated by Cadence service.
|
WorkflowOptions.Builder |
setMemo(java.util.Map<java.lang.String,java.lang.Object> memo)
Specifies additional non-indexed information in result of list workflow.
|
WorkflowOptions.Builder |
setRetryOptions(RetryOptions retryOptions) |
WorkflowOptions.Builder |
setSearchAttributes(java.util.Map<java.lang.String,java.lang.Object> searchAttributes)
Specifies additional indexed information in result of list workflow.
|
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 setRetryOptions(RetryOptions retryOptions)
public WorkflowOptions.Builder setCronSchedule(java.lang.String cronSchedule)
public WorkflowOptions.Builder setMemo(java.util.Map<java.lang.String,java.lang.Object> memo)
DataConverter
public WorkflowOptions.Builder setSearchAttributes(java.util.Map<java.lang.String,java.lang.Object> searchAttributes)
public WorkflowOptions.Builder setContextPropagators(java.util.List<ContextPropagator> contextPropagators)
public WorkflowOptions.Builder setDelayStart(java.time.Duration delayStart)
public WorkflowOptions build()
public WorkflowOptions validateBuildWithDefaults()