public abstract class RetryAfter extends HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
Constructor and Description |
---|
RetryAfter() |
Modifier and Type | Method and 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 available
|
java.util.Optional<java.lang.Long> |
getDelaySeconds()
number of seconds for the retry attempt, if available
|
fastFind, is, isNot, lowercaseName, name, parse, unapply, unsafeToString, value
parse, renderInRequests, renderInResponses
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
render
protected abstract scala.Option<java.lang.Long> delaySeconds()
protected abstract scala.Option<DateTime> dateTime()
public java.util.Optional<java.lang.Long> getDelaySeconds()
public java.util.Optional<DateTime> getDateTime()
public static RetryAfter create(java.lang.Long delaySeconds)
public static RetryAfter create(DateTime dateTime)