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
CanceledFailure . |
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 |
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.api.enums.v1.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 |
setTaskQueue(java.lang.String taskQueue)
Task queue to use for workflow tasks.
|
ChildWorkflowOptions.Builder |
setWorkflowExecutionTimeout(java.time.Duration workflowExecutionTimeout)
The maximum time that parent workflow is willing to wait for a child execution (which
includes retries and continue as new calls).
|
ChildWorkflowOptions.Builder |
setWorkflowId(java.lang.String workflowId)
Workflow id to use when starting.
|
ChildWorkflowOptions.Builder |
setWorkflowIdReusePolicy(io.temporal.api.enums.v1.WorkflowIdReusePolicy workflowIdReusePolicy)
Specifies server behavior if a completed workflow with the same id exists.
|
ChildWorkflowOptions.Builder |
setWorkflowRunTimeout(java.time.Duration workflowRunTimeout)
The time after which workflow run is automatically terminated by the Temporal service.
|
ChildWorkflowOptions.Builder |
setWorkflowTaskTimeout(java.time.Duration workflowTaskTimeout)
Maximum execution time of a single workflow task.
|
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.api.enums.v1.WorkflowIdReusePolicy workflowIdReusePolicy)
public ChildWorkflowOptions.Builder setWorkflowRunTimeout(java.time.Duration workflowRunTimeout)
public ChildWorkflowOptions.Builder setWorkflowExecutionTimeout(java.time.Duration workflowExecutionTimeout)
public ChildWorkflowOptions.Builder setWorkflowTaskTimeout(java.time.Duration workflowTaskTimeout)
public ChildWorkflowOptions.Builder setTaskQueue(java.lang.String taskQueue)
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.api.enums.v1.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)
CanceledFailure
. The type
defines at which point the exception is thrown.public ChildWorkflowOptions.Builder setMethodRetry(MethodRetry r)
public ChildWorkflowOptions.Builder setCronSchedule(CronSchedule c)
public ChildWorkflowOptions build()
public ChildWorkflowOptions validateAndBuildWithDefaults()