Package com.auth0.jwk
Class RateLimitReachedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.auth0.jwk.JwkException
com.auth0.jwk.RateLimitReachedException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the delay in which the jwk request can be retried.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RateLimitReachedException
public RateLimitReachedException(long availableInMs)
-
-
Method Details
-
getAvailableIn
public long getAvailableIn()Returns the delay in which the jwk request can be retried.- Returns:
- the time to wait in milliseconds before retrying the request.
-