Class 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
  • Constructor Details

    • RetryAfter

      public RetryAfter()
  • Method Details

    • delaySeconds

      protected abstract scala.Option<Long> delaySeconds()
    • dateTime

      protected abstract scala.Option<DateTime> dateTime()
    • getDelaySeconds

      public Optional<Long> getDelaySeconds()
      number of seconds for the retry attempt, if available
    • getDateTime

      public Optional<DateTime> getDateTime()
      the date for the retry attempt, if available
    • create

      public static RetryAfter create(Long delaySeconds)
    • create

      public static RetryAfter create(DateTime dateTime)