final case class RetryConfig(retriesRequestTimeout: Int, retriesTooManyRequests: Int, retriesClientError: Int, retriesInternalServerError: Int, retriesBadGateway: Int, retriesServiceUnavailable: Int, retriesServerError: Int, retriesException: Int, initialBackoff: FiniteDuration, strictifyResponseTimeout: FiniteDuration) extends Product with Serializable

Retry configuration of HTTP clients.

retriesRequestTimeout

Number of retries for HTTP 408

retriesTooManyRequests

Number of retries for HTTP 429 (usually in combination with retry-after header)

retriesClientError

Number of retries for all other 4xx codes

retriesInternalServerError

Number of retries for HTTP 500

retriesBadGateway

Number of retries for HTTP 502

retriesServiceUnavailable

Number of retries for HTTP 503

retriesServerError

Number of retries for all other 5xx codes

retriesException

Number of retries for exceptions in the underlying akka-http client

initialBackoff

Time to wait until the first retry. Is multiplied with 2(# of retry). Example: 10ms * 20 => 10ms 10ms * 21 => 20ms 10ms * 22 => 40ms 10ms * 23 => 80ms 10ms * 24 => 160ms

strictifyResponseTimeout

Time to wait for streaming data to complete

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetryConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RetryConfig(retriesRequestTimeout: Int, retriesTooManyRequests: Int, retriesClientError: Int, retriesInternalServerError: Int, retriesBadGateway: Int, retriesServiceUnavailable: Int, retriesServerError: Int, retriesException: Int, initialBackoff: FiniteDuration, strictifyResponseTimeout: FiniteDuration)

    retriesRequestTimeout

    Number of retries for HTTP 408

    retriesTooManyRequests

    Number of retries for HTTP 429 (usually in combination with retry-after header)

    retriesClientError

    Number of retries for all other 4xx codes

    retriesInternalServerError

    Number of retries for HTTP 500

    retriesBadGateway

    Number of retries for HTTP 502

    retriesServiceUnavailable

    Number of retries for HTTP 503

    retriesServerError

    Number of retries for all other 5xx codes

    retriesException

    Number of retries for exceptions in the underlying akka-http client

    initialBackoff

    Time to wait until the first retry. Is multiplied with 2(# of retry). Example: 10ms * 20 => 10ms 10ms * 21 => 20ms 10ms * 22 => 40ms 10ms * 23 => 80ms 10ms * 24 => 160ms

    strictifyResponseTimeout

    Time to wait for streaming data to complete

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  8. val initialBackoff: FiniteDuration
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def productElementNames: Iterator[String]
    Definition Classes
    Product
  14. val retriesBadGateway: Int
  15. val retriesClientError: Int
  16. val retriesException: Int
  17. val retriesInternalServerError: Int
  18. val retriesRequestTimeout: Int
  19. val retriesServerError: Int
  20. val retriesServiceUnavailable: Int
  21. val retriesTooManyRequests: Int
  22. val strictifyResponseTimeout: FiniteDuration
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped