Jitter

gears.async.Retry.Jitter
See theJitter companion object
trait Jitter

A randomizer for the delay duration, to avoid accidental coordinated DoS on failures. See Jitter companion objects for some provided jitter implementations.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def jitterDelay(last: FiniteDuration, maximum: FiniteDuration): FiniteDuration

Returns the actual duration to delay between attempts, given the theoretical given delay and actual last delay duration, possibly with some randomization.

Returns the actual duration to delay between attempts, given the theoretical given delay and actual last delay duration, possibly with some randomization.

Value parameters

last

The last delay duration performed, with jitter applied.

maximum

The theoretical amount of delay governed by the Delay policy, serving as an upper bound.

Attributes