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
- Alphabetic
- By Inheritance
- RetryStrategy
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
.