Class LongPollTimeoutException

All Implemented Interfaces:
Serializable

public final class LongPollTimeoutException extends DexServiceException
Thrown when a Dex long-poll operation reaches its timeout before satisfying the requested wait.

This exception can be thrown by Client.waitForFlow(String, java.time.Duration). Durable Step and Attribute waits reattach long polls internally. The timeout does not itself indicate a Flow failure. Callers may catch it and repeat the same exposed long-poll operation.

See Also:
  • Constructor Details

    • LongPollTimeoutException

      public LongPollTimeoutException(io.grpc.Status.Code code, String detail, String flowId, Throwable cause)
      Creates a long-poll timeout with the target Flow identity.
      Parameters:
      code - the gRPC status code returned by Dex
      detail - the server-provided timeout detail
      flowId - the Flow ID that remains active
      cause - the original transport failure
  • Method Details

    • getFlowId

      public String getFlowId()
      Returns the Flow ID whose long poll timed out.
      Returns:
      the Flow ID