final case class ExponentialBackoff(baseAmount: FiniteDuration) extends BackOffStrategy with Product with Serializable
Simple form of exponential backoff that is simply (tryCount * tryCount * baseAmount)
For a base amount of 1 second you get: retry 1 - 1 Second retry 2 - 4 Seconds retry 3 - 9 seconds retry 4 - 16 seconds
For a base amount of 500 milliseconds you get: retry 1 - 500 milliseconds retry 2 - 2,000 milliseconds retry 3 - 4,500 milliseconds retry 4 - 8,000 milliseconds
- Source
- Service.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ExponentialBackoff
- Serializable
- Product
- Equals
- BackOffStrategy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ExponentialBackoff(baseAmount: FiniteDuration)
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
- val baseAmount: FiniteDuration
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def millis(tryCount: Int): Long
- Definition Classes
- ExponentialBackoff → BackOffStrategy
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def wait(tryCount: Int): Unit
- Definition Classes
- ExponentialBackoff → BackOffStrategy
- 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])