Interface RetryAfter
- All Superinterfaces:
HttpResponseHeaders
- All Known Implementing Classes:
RetryAfterClientProblem,RetryAfterServerProblem,ServiceUnavailableProblem,TooManyFailedRequestsProblem,TooManyRequestsProblem
Interface implemented by problems with retryAfter / retryAfterSec properties.
The retry value is also returned in the Retry-After HTTP response header.
-
Field Summary
Fields inherited from interface io.github.belgif.rest.problem.api.HttpResponseHeaders
RETRY_AFTER, WWW_AUTHENTICATE -
Method Summary
Modifier and TypeMethodDescriptionReturn the HTTP response headers.
-
Method Details
-
getRetryAfter
OffsetDateTime getRetryAfter() -
getRetryAfterSec
Long getRetryAfterSec() -
getHttpResponseHeaders
Description copied from interface:HttpResponseHeadersReturn the HTTP response headers.- Specified by:
getHttpResponseHeadersin interfaceHttpResponseHeaders- Returns:
- the HTTP response headers
-