Package eu.vstoyanov.natsy.exception
Class NatsyNoRespondersException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class NatsyNoRespondersException extends NatsyException
A request was published to a subject nobody is subscribed to.
Distinct from NatsyTimeoutException: the server answered immediately that there is no responder, so waiting longer would not have helped. Typically a wrong subject, or a service that has not started yet - and on JetStream, a subject no stream covers.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringsubjectprivate final Stringmessageprivate final Throwablecauseprivate final StringlocalizedMessageprivate final Array<Throwable>suppressedprivate Array<StackTraceElement>stackTrace
-
Constructor Summary
Constructors Constructor Description NatsyNoRespondersException(String subject, Throwable cause)
-
Method Summary
Modifier and Type Method Description final StringgetSubject()the request subject that had no responder, or nullwhen natsy does not know it.-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSubject
final String getSubject()
the request subject that had no responder, or
nullwhen natsy does not know it. Core request-reply always knows it; a JetStream API call that comes back unanswered is reported by jnats without one.
-
-
-
-