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
ConstructorsModifierConstructorDescriptionprotectedRetryAfterServerProblem(URI type, String title, int status) protectedRetryAfterServerProblem(URI type, String title, int status, Throwable cause) protectedRetryAfterServerProblem(URI type, URI href, String title, int status) protectedRetryAfterServerProblem(URI type, URI href, String title, int status, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetRetryAfter(OffsetDateTime retryAfter) voidsetRetryAfterSec(Long retryAfterSec) Methods inherited from class io.github.belgif.rest.problem.api.Problem
getAdditionalProperties, getDetail, getHref, getInstance, getMessage, getStatus, getTitle, getType, setAdditionalProperty, setDetail, setHref, setInstanceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.belgif.rest.problem.api.RetryAfter
getHttpResponseHeaders
-
Constructor Details
-
RetryAfterServerProblem
-
RetryAfterServerProblem
-
RetryAfterServerProblem
-
RetryAfterServerProblem
-
-
Method Details
-
getRetryAfter
- Specified by:
getRetryAfterin interfaceRetryAfter
-
setRetryAfter
-
getRetryAfterSec
- Specified by:
getRetryAfterSecin interfaceRetryAfter
-
setRetryAfterSec
-
equals
-
hashCode
public int hashCode()
-