Class StartNexusOperationOptions.Builder
java.lang.Object
io.temporal.client.StartNexusOperationOptions.Builder
- Enclosing class:
StartNexusOperationOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Required.setIdConflictPolicy(io.temporal.api.enums.v1.NexusOperationIdConflictPolicy idConflictPolicy) Controls behavior when an operation with the same ID is currently running.setIdReusePolicy(io.temporal.api.enums.v1.NexusOperationIdReusePolicy idReusePolicy) Controls behavior when an operation with the same ID was previously run and is closed.setScheduleToCloseTimeout(Duration scheduleToCloseTimeout) Total time the caller is willing to wait for the operation to complete.setScheduleToStartTimeout(Duration scheduleToStartTimeout) Time the operation may wait in the queue before a handler picks it up.setStartToCloseTimeout(Duration startToCloseTimeout) Maximum time for a single attempt.setSummary(String summary) Short summary for UI display.setTypedSearchAttributes(SearchAttributes typedSearchAttributes) Typed search attributes to attach to this operation execution.
-
Method Details
-
setId
Required. Unique identifier for this operation within its namespace.build()throwsIllegalStateExceptionifsetIdwas never called. -
setScheduleToCloseTimeout
public StartNexusOperationOptions.Builder setScheduleToCloseTimeout(@Nullable Duration scheduleToCloseTimeout) Total time the caller is willing to wait for the operation to complete. -
setScheduleToStartTimeout
public StartNexusOperationOptions.Builder setScheduleToStartTimeout(@Nullable Duration scheduleToStartTimeout) Time the operation may wait in the queue before a handler picks it up. -
setStartToCloseTimeout
public StartNexusOperationOptions.Builder setStartToCloseTimeout(@Nullable Duration startToCloseTimeout) Maximum time for a single attempt. -
setTypedSearchAttributes
public StartNexusOperationOptions.Builder setTypedSearchAttributes(@Nullable SearchAttributes typedSearchAttributes) Typed search attributes to attach to this operation execution. -
setSummary
Short summary for UI display. -
setIdReusePolicy
public StartNexusOperationOptions.Builder setIdReusePolicy(@Nullable io.temporal.api.enums.v1.NexusOperationIdReusePolicy idReusePolicy) Controls behavior when an operation with the same ID was previously run and is closed. -
setIdConflictPolicy
public StartNexusOperationOptions.Builder setIdConflictPolicy(@Nullable io.temporal.api.enums.v1.NexusOperationIdConflictPolicy idConflictPolicy) Controls behavior when an operation with the same ID is currently running. -
build
-