Class RetryAfterException

    • Constructor Summary

      Constructors 
      Constructor Description
      RetryAfterException​(java.lang.String message, java.lang.Long delay)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long getDelay()
      Get a delay specified in "Retry-After" response header in seconds.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RetryAfterException

        public RetryAfterException​(java.lang.String message,
                                   java.lang.Long delay)
        Constructor.
        Parameters:
        message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
        delay - a delay to the time received handshake response in header.
    • Method Detail

      • getDelay

        public java.lang.Long getDelay()
        Get a delay specified in "Retry-After" response header in seconds.
        Returns:
        a delay in seconds or null when response does not contain "Retry-After" or the value cannot be parsed as long ot http-date.