Class LongPollTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.superdurable.dex.exceptions.DexServiceException
io.superdurable.dex.exceptions.LongPollTimeoutException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionLongPollTimeoutException(io.grpc.Status.Code code, String detail, String flowId, Throwable cause) Creates a long-poll timeout with the target Flow identity. -
Method Summary
Methods inherited from class DexServiceException
getCode, getDetail, getSubStatusMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 Dexdetail- the server-provided timeout detailflowId- the Flow ID that remains activecause- the original transport failure
-
-
Method Details
-
getFlowId
-