Schedule

ox.retry.Schedule
object Schedule

Attributes

Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Schedule.type

Members list

Type members

Classlikes

case class Backoff(maxRetries: Int, initialDelay: FiniteDuration, maxDelay: FiniteDuration, jitter: Jitter)

A schedule that retries up to a given number of times, with an increasing delay (backoff) between subsequent attempts.

A schedule that retries up to a given number of times, 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.

maxRetries

The maximum number of retries.

Attributes

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

Attributes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Delay(maxRetries: Int, delay: FiniteDuration)

A schedule that retries up to a given number of times, with a fixed delay between subsequent attempts.

A schedule that retries up to a given number of times, with a fixed delay between subsequent attempts.

Value parameters

delay

The delay between subsequent attempts.

maxRetries

The maximum number of retries.

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Delay.type
case class DelayForever

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Immediate(maxRetries: Int)

A schedule that retries up to a given number of times, with no delay between subsequent attempts.

A schedule that retries up to a given number of times, with no delay between subsequent attempts.

Value parameters

maxRetries

The maximum number of retries.

Attributes

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

Attributes

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

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