public static final class ChildWorkflowOptions.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ChildWorkflowOptions |
build() |
ChildWorkflowOptions.Builder |
setCancellationType(ChildWorkflowCancellationType cancellationType)
In case of a child workflow cancellation it fails with a
CancellationException . |
ChildWorkflowOptions.Builder |
setContextPropagators(java.util.List<ContextPropagator> contextPropagators)
Specifies the list of context propagators to use during this workflow.
|
ChildWorkflowOptions.Builder |
setCronSchedule(CronSchedule c) |
ChildWorkflowOptions.Builder |
setCronSchedule(java.lang.String cronSchedule) |
ChildWorkflowOptions.Builder |
setExecutionStartToCloseTimeout(java.time.Duration executionStartToCloseTimeout)
The time after which workflow execution is automatically terminated by Temporal 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 |
setMethodRetry(MethodRetry r) |
ChildWorkflowOptions.Builder |
setNamespace(java.lang.String namespace)
Specify namespace in which workflow should be started.
|
ChildWorkflowOptions.Builder |
setParentClosePolicy(io.temporal.proto.common.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(io.temporal.proto.common.WorkflowIdReusePolicy workflowIdReusePolicy)
Specifies server behavior if a completed workflow with the same id exists.
|
ChildWorkflowOptions.Builder |
setWorkflowMethod(WorkflowMethod a) |
ChildWorkflowOptions |
validateAndBuildWithDefaults() |
public ChildWorkflowOptions.Builder setNamespace(java.lang.String namespace)
TODO: Resolve conflict with WorkflowClient namespace.
public ChildWorkflowOptions.Builder setWorkflowId(java.lang.String workflowId)
public ChildWorkflowOptions.Builder setWorkflowIdReusePolicy(io.temporal.proto.common.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(io.temporal.proto.common.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.Builder setCancellationType(ChildWorkflowCancellationType cancellationType)
CancellationException
. The
type defines at which point the exception is thrown.public ChildWorkflowOptions.Builder setWorkflowMethod(WorkflowMethod a)
public ChildWorkflowOptions.Builder setMethodRetry(MethodRetry r)
public ChildWorkflowOptions.Builder setCronSchedule(CronSchedule c)
public ChildWorkflowOptions build()
public ChildWorkflowOptions validateAndBuildWithDefaults()