final case class RetryStrategy(max: Int, delay: Long, factor: (Int) => Int) extends Product with Serializable

Describes how to retry failed request for RemoteXmlSource.

Constructors for commonly used patterns can be found in the RetryStrategy$ companion object.

max

maximum number of attempts that can be made for a given request.

delay

delay, in milliseconds, between each attempt.

factor

function that calculates the delay factor based on the number of requests already attempted. In order to double waiting times between each attempt, for example, one would pass i ⇒ 2 ^ i.

Source
RetryStrategy.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetryStrategy
  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 RetryStrategy(max: Int, delay: Long, factor: (Int) => Int)

    max

    maximum number of attempts that can be made for a given request.

    delay

    delay, in milliseconds, between each attempt.

    factor

    function that calculates the delay factor based on the number of requests already attempted. In order to double waiting times between each attempt, for example, one would pass i ⇒ 2 ^ i.

Value Members

  1. val delay: Long
  2. def delayFor(count: Int): Long
  3. val factor: (Int) => Int
  4. val max: Int
  5. def productElementNames: Iterator[String]
    Definition Classes
    Product