Class RetryAfterServerProblem
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.belgif.rest.problem.api.Problem
io.github.belgif.rest.problem.api.ServerProblem
io.github.belgif.rest.problem.api.RetryAfterServerProblem
- All Implemented Interfaces:
HttpResponseHeaders
,RetryAfter
,Serializable
- Direct Known Subclasses:
ServiceUnavailableProblem
Abstract base class for server problems with retryAfter/retryAfterSec.
- See Also:
-
Field Summary
Fields inherited from interface io.github.belgif.rest.problem.api.HttpResponseHeaders
RETRY_AFTER, WWW_AUTHENTICATE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RetryAfterServerProblem
(URI type, String title, int status) protected
RetryAfterServerProblem
(URI type, String title, int status, Throwable cause) protected
RetryAfterServerProblem
(URI type, URI href, String title, int status) protected
RetryAfterServerProblem
(URI type, URI href, String title, int status, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setRetryAfter
(OffsetDateTime retryAfter) void
setRetryAfterSec
(Long retryAfterSec) Methods inherited from class io.github.belgif.rest.problem.api.Problem
getAdditionalProperties, getDetail, getHref, getInstance, getMessage, getStatus, getTitle, getType, setAdditionalProperty, setDetail, setHref, setInstance
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.belgif.rest.problem.api.RetryAfter
getHttpResponseHeaders
-
Constructor Details
-
RetryAfterServerProblem
-
RetryAfterServerProblem
-
RetryAfterServerProblem
-
RetryAfterServerProblem
-
-
Method Details
-
getRetryAfter
- Specified by:
getRetryAfter
in interfaceRetryAfter
-
setRetryAfter
-
getRetryAfterSec
- Specified by:
getRetryAfterSec
in interfaceRetryAfter
-
setRetryAfterSec
-
equals
-
hashCode
public int hashCode()
-