Class UpdateOptions.Builder<T>
java.lang.Object
io.temporal.client.UpdateOptions.Builder<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds StartUpdateOptions with default values.setFirstExecutionRunId(String firstExecutionRunId) The RunID expected to identify the first run in the workflow execution chain.setResultClass(Class<T> resultClass) The class of the update return value.setResultType(Type resultType) The type of the update return value.setUpdateId(String updateId) The update ID is an application-layer identifier for the requested update.setUpdateName(String updateName) Name of the update handler.setWaitForStage(WorkflowUpdateStage waitForStage) Specifies at what point in the update request life cycles this request should return.
-
Method Details
-
setUpdateName
Name of the update handler. Usually it is a method name. -
setUpdateId
The update ID is an application-layer identifier for the requested update. It must be unique within the scope of a workflow execution.Default value if not set: Random UUID
-
setFirstExecutionRunId
The RunID expected to identify the first run in the workflow execution chain. If this expectation does not match then the server will reject the update request with an error.Default value if not set: Empty String
-
setWaitForStage
Specifies at what point in the update request life cycles this request should return. Required to be set to one of the following values:- Accepted Wait for the update to be accepted by the workflow.
- Completed Wait for the update to be completed by the workflow.
-
setResultClass
The class of the update return value. -
setResultType
The type of the update return value.Default value if not set: resultClass
-
build
Builds StartUpdateOptions with default values.
-