Backoff

ox.scheduling.Schedule.Backoff
See theBackoff companion object
case class Backoff(maxRepeats: Int, firstDuration: FiniteDuration, maxDuration: FiniteDuration, jitter: Jitter)

A schedule that represents an increasing duration between invocations (backoff), up to a given number of times.

The backoff is exponential with base 2 (i.e. the next duration is twice as long as the previous one), starting at the given first duration and capped at the given maximum duration.

Value parameters

firstDuration

The duration between the first and the second invocations.

jitter

A random factor used for calculating the duration between subsequent repeats. See Jitter for more details. Defaults to no jitter, i.e. an exponential backoff with no adjustments.

maxDuration

The maximum duration between subsequent invocations.

maxRepeats

The maximum number of repeats.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Schedule
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def nextDuration(invocation: Int, lastDuration: Option[FiniteDuration]): FiniteDuration

Attributes

Definition Classes

Inherited methods

def andThen(nextSchedule: Infinite): Infinite

Attributes

Inherited from:
Finite (hidden)
def andThen(nextSchedule: Finite): Finite

Attributes

Inherited from:
Finite (hidden)
def initialDelay: FiniteDuration

Attributes

Inherited from:
Schedule
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product