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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getSubject() the request subject that had no responder, or null when 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
    • Constructor Detail

      • NatsyNoRespondersException

        NatsyNoRespondersException(String subject, Throwable cause)
    • Method Detail

      • getSubject

         final String getSubject()

        the request subject that had no responder, or null when 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.