Class WaitForStepCompletionOptions.Builder

java.lang.Object
io.superdurable.dex.WaitForStepCompletionOptions.Builder
Enclosing class:
WaitForStepCompletionOptions

public static final class WaitForStepCompletionOptions.Builder extends Object
Builds immutable Step completion wait options.
  • Method Details

    • requestId

      public WaitForStepCompletionOptions.Builder requestId(String value)
      Overrides the stable Request ID derived from the Step execution.
      Parameters:
      value - the non-empty Request ID
      Returns:
      this builder
    • requestTimeout

      public WaitForStepCompletionOptions.Builder requestTimeout(Duration value)
      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

      public WaitForStepCompletionOptions.Builder internalHandlerTimeout(Duration value)
      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