Delay

gears.async.Retry.Delay
See theDelay companion trait
object Delay

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Delay.type

Members list

Value members

Concrete methods

def backoff(maximum: Duration, starting: FiniteDuration, multiplier: Double = ..., jitter: Jitter = ...): Delay

Returns a delay policy for exponential backoff.

Returns a delay policy for exponential backoff.

Value parameters

jitter

An additional jitter to randomize the delay duration. Defaults to none. See Jitter.

maximum

The maximum duration possible for a delay.

multiplier

Scale the delay duration by this multiplier for each successive failure. Defaults to 2.

starting

The delay duration between successful attempts, and after the first failures.

Attributes

def constant(duration: FiniteDuration): Delay

A fixed amount of delays, whether the last attempt was a success or failure.

A fixed amount of delays, whether the last attempt was a success or failure.

Attributes

def deccorelated(maximum: Duration, starting: Duration, multiplier: Double = ...): Delay

Decorrelated exponential backoff: randomize between the last delay duration and a multiple of that duration.

Decorrelated exponential backoff: randomize between the last delay duration and a multiple of that duration.

Attributes

Concrete fields

val none: Delay

No delays.

No delays.

Attributes