Backoff

ox.retry.Schedule.Backoff
See theBackoff companion class
object Backoff

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Backoff.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def forever(initialDelay: FiniteDuration, maxDelay: FiniteDuration, jitter: Jitter): Infinite

A schedule that retries indefinitely, with an increasing delay (backoff) between subsequent attempts.

A schedule that retries indefinitely, with an increasing delay (backoff) between subsequent attempts.

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

Value parameters

initialDelay

The delay before the first retry.

jitter

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

maxDelay

The maximum delay between subsequent retries.

Attributes