Class WaitForStepCompletionOptions.Builder
java.lang.Object
io.superdurable.dex.WaitForStepCompletionOptions.Builder
- Enclosing class:
WaitForStepCompletionOptions
Builds immutable Step completion wait options.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.internalHandlerTimeout(Duration value) Bounds one internal Temporal Update handler generation.Overrides the stable Request ID derived from the Step execution.requestTimeout(Duration value) Bounds the caller-visible request across transparent transport reattachments.
-
Method Details
-
requestId
Overrides the stable Request ID derived from the Step execution.- Parameters:
value- the non-empty Request ID- Returns:
- this builder
-
requestTimeout
Bounds the caller-visible request across transparent transport reattachments. Zero waits indefinitely.- Parameters:
value- a nonnegative whole-second duration within the protocol range- Returns:
- this builder
-
internalHandlerTimeout
Bounds one internal Temporal Update handler generation. Set a positive value only to reclaim accepted waits left in flight after callers exit. Temporal permits 10 in-flight Updates per Workflow Execution. Active callers transparently start another generation, which counts toward Temporal's 2,000-Update history limit. Zero disables rollover. Prefer a value longer than normal request timeouts and reconnect gaps.- Parameters:
value- a nonnegative whole-second duration within the protocol range- Returns:
- this builder
-
build
Builds the options. The Client validates the duration at call time.- Returns:
- immutable Step wait options
-