Class RetryWithRequestedWaitException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RetryWithRequestedWaitException
    extends ResponseException
    This exception is thrown when the request should be tried again after a period of time.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.TimeUnit getTimeUnit()  
      int getWaitTime()  
      • 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

      • RetryWithRequestedWaitException

        public RetryWithRequestedWaitException​(int waitTime,
                                               java.util.concurrent.TimeUnit timeUnit)
    • Method Detail

      • getWaitTime

        public int getWaitTime()
      • getTimeUnit

        public java.util.concurrent.TimeUnit getTimeUnit()