Class ContinueAsNewOptions.Builder
java.lang.Object
io.temporal.workflow.ContinueAsNewOptions.Builder
- Enclosing class:
ContinueAsNewOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setBackoffStartInterval(Duration backoffStartInterval) Sets the delay before the first workflow task of the continued run is scheduled.setContextPropagators(List<ContextPropagator> contextPropagators) setInitialVersioningBehavior(InitialVersioningBehavior initialVersioningBehavior) Specifies the versioning behavior for the first task of the new workflow run.setRetryOptions(RetryOptions retryOptions) setSearchAttributes(Map<String, Object> searchAttributes) Deprecated.setTaskQueue(String taskQueue) setTypedSearchAttributes(SearchAttributes typedSearchAttributes) setVersioningIntent(VersioningIntent versioningIntent) Deprecated.Worker Versioning is now deprecated please migrate to the Worker Deployment API.setWorkflowRunTimeout(Duration workflowRunTimeout) setWorkflowTaskTimeout(Duration workflowTaskTimeout)
-
Method Details
-
setWorkflowRunTimeout
-
setTaskQueue
-
setRetryOptions
-
setWorkflowTaskTimeout
-
setBackoffStartInterval
Sets the delay before the first workflow task of the continued run is scheduled. -
setMemo
-
setSearchAttributes
@Deprecated public ContinueAsNewOptions.Builder setSearchAttributes(Map<String, Object> searchAttributes) Deprecated. -
setTypedSearchAttributes
public ContinueAsNewOptions.Builder setTypedSearchAttributes(SearchAttributes typedSearchAttributes) -
setContextPropagators
public ContinueAsNewOptions.Builder setContextPropagators(List<ContextPropagator> contextPropagators) -
setVersioningIntent
@Deprecated public ContinueAsNewOptions.Builder setVersioningIntent(VersioningIntent versioningIntent) Deprecated.Worker Versioning is now deprecated please migrate to the Worker Deployment API.Specifies whether this continued workflow should run on a worker with a compatible Build Id or not. See the variants ofVersioningIntent. -
setInitialVersioningBehavior
@Experimental public ContinueAsNewOptions.Builder setInitialVersioningBehavior(InitialVersioningBehavior initialVersioningBehavior) Specifies the versioning behavior for the first task of the new workflow run. For example, set to AUTO_UPGRADE to upgrade to the latest version on continue-as-new instead of inheriting the pinned version from the previous run. -
build
-
setTypedSearchAttributes(io.temporal.common.SearchAttributes)instead.