public static final class ChildWorkflowOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(ChildWorkflowOptions source) |
Modifier and Type | Method and Description |
---|---|
ChildWorkflowOptions |
build() |
ChildWorkflowOptions.Builder |
setContextPropagators(java.util.List<ContextPropagator> contextPropagators)
Specifies the list of context propagators to use during this workflow.
|
ChildWorkflowOptions.Builder |
setCronSchedule(java.lang.String cronSchedule) |
ChildWorkflowOptions.Builder |
setDomain(java.lang.String domain)
Specify domain in which workflow should be started.
|
ChildWorkflowOptions.Builder |
setExecutionStartToCloseTimeout(java.time.Duration executionStartToCloseTimeout)
The time after which workflow execution is automatically terminated by Cadence service.
|
ChildWorkflowOptions.Builder |
setMemo(java.util.Map<java.lang.String,java.lang.Object> memo)
Specifies additional non-indexed information in result of list workflow.
|
ChildWorkflowOptions.Builder |
setParentClosePolicy(ParentClosePolicy parentClosePolicy)
Specifies how this workflow reacts to the death of the parent workflow.
|
ChildWorkflowOptions.Builder |
setRetryOptions(RetryOptions retryOptions)
RetryOptions that define how child workflow is retried in case of failure.
|
ChildWorkflowOptions.Builder |
setSearchAttributes(java.util.Map<java.lang.String,java.lang.Object> searchAttributes)
Specifies additional indexed information in result of list workflow.
|
ChildWorkflowOptions.Builder |
setTaskList(java.lang.String taskList)
Task list to use for decision tasks.
|
ChildWorkflowOptions.Builder |
setTaskStartToCloseTimeout(java.time.Duration taskStartToCloseTimeout)
Maximum execution time of a single decision task.
|
ChildWorkflowOptions.Builder |
setWorkflowId(java.lang.String workflowId)
Workflow id to use when starting.
|
ChildWorkflowOptions.Builder |
setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
Specifies server behavior if a completed workflow with the same id exists.
|
ChildWorkflowOptions |
validateAndBuildWithDefaults() |
public Builder()
public Builder(ChildWorkflowOptions source)
public ChildWorkflowOptions.Builder setDomain(java.lang.String domain)
TODO: Resolve conflict with WorkflowClient domain.
public ChildWorkflowOptions.Builder setWorkflowId(java.lang.String workflowId)
public ChildWorkflowOptions.Builder setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy)
public ChildWorkflowOptions.Builder setExecutionStartToCloseTimeout(java.time.Duration executionStartToCloseTimeout)
public ChildWorkflowOptions.Builder setTaskStartToCloseTimeout(java.time.Duration taskStartToCloseTimeout)
public ChildWorkflowOptions.Builder setTaskList(java.lang.String taskList)
Worker
that hosts the workflow code.public ChildWorkflowOptions.Builder setRetryOptions(RetryOptions retryOptions)
public ChildWorkflowOptions.Builder setCronSchedule(java.lang.String cronSchedule)
public ChildWorkflowOptions.Builder setParentClosePolicy(ParentClosePolicy parentClosePolicy)
public ChildWorkflowOptions.Builder setMemo(java.util.Map<java.lang.String,java.lang.Object> memo)
public ChildWorkflowOptions.Builder setSearchAttributes(java.util.Map<java.lang.String,java.lang.Object> searchAttributes)
public ChildWorkflowOptions.Builder setContextPropagators(java.util.List<ContextPropagator> contextPropagators)
public ChildWorkflowOptions build()
public ChildWorkflowOptions validateAndBuildWithDefaults()