Package io.temporal.client
Class UpdateOptions.Builder<T>
- java.lang.Object
-
- io.temporal.client.UpdateOptions.Builder<T>
-
- Enclosing class:
- UpdateOptions<T>
public static final class UpdateOptions.Builder<T> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateOptions<T>
build()
Builds StartUpdateOptions with default values.UpdateOptions.Builder<T>
setFirstExecutionRunId(java.lang.String firstExecutionRunId)
The RunID expected to identify the first run in the workflow execution chain.UpdateOptions.Builder<T>
setResultClass(java.lang.Class<T> resultClass)
The class of the update return value.UpdateOptions.Builder<T>
setResultType(java.lang.reflect.Type resultType)
The type of the update return value.UpdateOptions.Builder<T>
setUpdateId(java.lang.String updateId)
The update ID is an application-layer identifier for the requested update.UpdateOptions.Builder<T>
setUpdateName(java.lang.String updateName)
Name of the update handler.UpdateOptions.Builder<T>
setWaitForStage(WorkflowUpdateStage waitForStage)
Specifies at what point in the update request life cycles this request should return.
-
-
-
Method Detail
-
setUpdateName
public UpdateOptions.Builder<T> setUpdateName(java.lang.String updateName)
Name of the update handler. Usually it is a method name.
-
setUpdateId
public UpdateOptions.Builder<T> setUpdateId(java.lang.String updateId)
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
public UpdateOptions.Builder<T> setFirstExecutionRunId(java.lang.String firstExecutionRunId)
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
public UpdateOptions.Builder<T> setWaitForStage(WorkflowUpdateStage waitForStage)
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
public UpdateOptions.Builder<T> setResultClass(java.lang.Class<T> resultClass)
The class of the update return value.
-
setResultType
public UpdateOptions.Builder<T> setResultType(java.lang.reflect.Type resultType)
The type of the update return value.Default value if not set: resultClass
-
build
public UpdateOptions<T> build()
Builds StartUpdateOptions with default values.
-
-