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
.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val delay: Long
- def delayFor(count: Int): Long
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val factor: (Int) => Int
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val max: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()