Class PullRegistrationError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
io.superdurable.dex.PullRegistrationError
- All Implemented Interfaces:
Serializable
Identifies a permanent pull rejection leaving a slot kind without a registered stream.
Thrown by Worker.waitPullRegistered(java.time.Duration) before initial readiness,
or by Worker.start() when stopping on permanent rejection is enabled.
Permanent codes are InvalidArgument, ResourceExhausted, Unimplemented, PermissionDenied,
and Unauthenticated. The cause is the original transport error. See the wait method for a startup example.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPullRegistrationError(String queue, Throwable cause) Creates a rejection retaining its original transport cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PullRegistrationError
-
-
Method Details
-
getQueue
Returns the rejected slot kind through the legacy queue accessor.- Returns:
- the slot kind name, rather than a single routing queue
-