public static final class WorkflowOptions.Builder
extends java.lang.Object
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 |
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 |
setTaskQueue(java.lang.String taskQueue)
Task queue to use for workflow tasks.
|
WorkflowOptions.Builder |
setWorkflowExecutionTimeout(java.time.Duration workflowExecutionTimeout)
The time after which workflow execution (which includes run retries and continue as new) is
automatically terminated by Temporal service.
|
WorkflowOptions.Builder |
setWorkflowId(java.lang.String workflowId)
Workflow id to use when starting.
|
WorkflowOptions.Builder |
setWorkflowIdReusePolicy(io.temporal.api.enums.v1.WorkflowIdReusePolicy workflowIdReusePolicy)
Specifies server behavior if a completed workflow with the same id exists.
|
WorkflowOptions.Builder |
setWorkflowRunTimeout(java.time.Duration workflowRunTimeout)
The time after which workflow run is automatically terminated by Temporal service.
|
WorkflowOptions.Builder |
setWorkflowTaskTimeout(java.time.Duration workflowTaskTimeout)
Maximum execution time of a single Workflow Task.
|
WorkflowOptions |
validateBuildWithDefaults()
Validates that all required properties are set and fills all other with default parameters.
|
public WorkflowOptions.Builder setWorkflowId(java.lang.String workflowId)
public WorkflowOptions.Builder setWorkflowIdReusePolicy(io.temporal.api.enums.v1.WorkflowIdReusePolicy workflowIdReusePolicy)
public WorkflowOptions.Builder setWorkflowRunTimeout(java.time.Duration workflowRunTimeout)
public WorkflowOptions.Builder setWorkflowExecutionTimeout(java.time.Duration workflowExecutionTimeout)
public WorkflowOptions.Builder setWorkflowTaskTimeout(java.time.Duration workflowTaskTimeout)
Default is 10 seconds. Maximum value allowed by the Temporal Server is 1 minute.
public WorkflowOptions.Builder setTaskQueue(java.lang.String taskQueue)
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 build()
public WorkflowOptions validateBuildWithDefaults()