case class ExponentialBackoffStrategy(maxTime: FiniteDuration, stepSize: FiniteDuration) extends BackoffStrategy with Product with Serializable
A BackoffStrategy
where the back-off time grows exponentially for each
successive retry.
The back-off time after n
failures is min(maxTime, (2 ** n) * stepSize).
- maxTime
Maximum back-off time.
- stepSize
Minimum step size to increment back-off.
- Source
- BackoffStrategy.scala
- Alphabetic
- By Inheritance
- ExponentialBackoffStrategy
- Serializable
- Product
- Equals
- BackoffStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ExponentialBackoffStrategy(maxTime: FiniteDuration, stepSize: FiniteDuration)
- maxTime
Maximum back-off time.
- stepSize
Minimum step size to increment back-off.
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]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxTime: FiniteDuration
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val stepSize: FiniteDuration
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def waitDuration(numFailures: Int): FiniteDuration
Returns the amount of time to wait after
numFailures
failures.Returns the amount of time to wait after
numFailures
failures.- Definition Classes
- ExponentialBackoffStrategy → BackoffStrategy
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)