Class WaitForAttributeOptions.Builder

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

public static final class WaitForAttributeOptions.Builder extends Object
Builds immutable Attribute wait options.
  • Method Details

    • requestId

      public WaitForAttributeOptions.Builder requestId(String value)
      Overrides the stable Request ID derived from the Attribute condition.
      Parameters:
      value - the non-empty Request ID override
      Returns:
      this builder
    • requestTimeout

      public WaitForAttributeOptions.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 WaitForAttributeOptions.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

      public WaitForAttributeOptions build()
      Builds the options. The Client validates the duration at call time.
      Returns:
      immutable Attribute wait options