object Jitter
The algorithms here were inspired by this article: https://www.awsarchitectureblog.com/2015/03/backoff.html
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Jitter
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
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() @IntrinsicCandidate()
- def decorrelated(cap: Duration, random: RandomSource = defaultRandomSource, base: Int = 3): Jitter
similar to full, but we also increase the maximum jitter started on the last random value.
- val defaultRandomSource: RandomSource
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equal(cap: Duration, random: RandomSource = defaultRandomSource, base: Int = 2): Jitter
Always keep some of the backoff and jitter by a smaller amount (prevents very short sleeps)
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def full(cap: Duration, random: RandomSource = defaultRandomSource, base: Int = 2): Jitter
Normal exponential backoff + cap + random jitter
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def none(cap: Duration, base: Int = 2): Jitter
Simple exponential backoff + cap
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def randomSource(random: => Random): RandomSource
Create a RandomSource from an instance of java.util.Random Please be mindful of the call-by-name semantics
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])