Package akka.http.javadsl.model.headers
Class RetryAfter
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.RetryAfter
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
- Direct Known Subclasses:
Retry$minusAfter
public abstract class RetryAfter extends HttpHeader
Model for the `Retry-After` header. Specification: //https://tools.ietf.org/html/rfc7231#section-7.1.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Constructor Description RetryAfter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static RetryAfter
create(DateTime dateTime)
static RetryAfter
create(java.lang.Long delaySeconds)
protected abstract scala.Option<DateTime>
dateTime()
protected abstract scala.Option<java.lang.Long>
delaySeconds()
java.util.Optional<DateTime>
getDateTime()
the date for the retry attempt, if availablejava.util.Optional<java.lang.Long>
getDelaySeconds()
number of seconds for the retry attempt, if available-
Methods inherited from class akka.http.scaladsl.model.HttpHeader
fastFind, is, isNot, lowercaseName, name, parse, unapply, unsafeToString, value
-
Methods inherited from class akka.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponses
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Method Detail
-
delaySeconds
protected abstract scala.Option<java.lang.Long> delaySeconds()
-
dateTime
protected abstract scala.Option<DateTime> dateTime()
-
getDelaySeconds
public java.util.Optional<java.lang.Long> getDelaySeconds()
number of seconds for the retry attempt, if available
-
getDateTime
public java.util.Optional<DateTime> getDateTime()
the date for the retry attempt, if available
-
create
public static RetryAfter create(java.lang.Long delaySeconds)
-
create
public static RetryAfter create(DateTime dateTime)
-
-