RepeatConfig

ox.scheduling.RepeatConfig
See theRepeatConfig companion class
object RepeatConfig

Attributes

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

Members list

Type members

Inherited and Abstract 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 backoff[E, T](maxInvocations: Int, firstInterval: FiniteDuration, maxInterval: FiniteDuration, jitter: Jitter, initialDelay: Option[FiniteDuration]): RepeatConfig[E, T]

Creates a config that repeats up to a given number of times, with an increasing interval (backoff) between subsequent attempts and optional initial delay.

Creates a config that repeats up to a given number of times, with an increasing interval (backoff) between subsequent attempts and optional initial delay.

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

Value parameters

firstInterval

The interval between the first and the second operation.

jitter

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

maxInterval

The maximum interval between subsequent invocations. Defaults to 1 minute.

maxInvocations

The maximum number of invocations.

Attributes

def backoffForever[E, T](firstInterval: FiniteDuration, maxInterval: FiniteDuration, jitter: Jitter, initialDelay: Option[FiniteDuration]): RepeatConfig[E, T]

Creates a config that repeats indefinitely, with an increasing interval (backoff) between subsequent invocations and optional initial delay.

Creates a config that repeats indefinitely, with an increasing interval (backoff) between subsequent invocations and optional initial delay.

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

Value parameters

firstInterval

The interval between the first and the second operation.

jitter

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

maxInterval

The maximum interval between subsequent invocations. Defaults to 1 minute.

Attributes

def fixedRate[E, T](maxInvocations: Int, interval: FiniteDuration, initialDelay: Option[FiniteDuration]): RepeatConfig[E, T]

Creates a config that repeats up to a given number of times, with a fixed interval between subsequent invocations and optional initial delay.

Creates a config that repeats up to a given number of times, with a fixed interval between subsequent invocations and optional initial delay.

Value parameters

initialDelay

The initial delay before the first invocation.

interval

The interval between subsequent attempts.

maxInvocations

The maximum number of invocations.

Attributes

def fixedRateForever[E, T](interval: FiniteDuration, initialDelay: Option[FiniteDuration]): RepeatConfig[E, T]

Creates a config that repeats indefinitely, with a fixed interval between subsequent invocations and optional initial delay.

Creates a config that repeats indefinitely, with a fixed interval between subsequent invocations and optional initial delay.

Value parameters

interval

The interval between subsequent invocations.

Attributes

def immediate[E, T](maxInvocations: Int, initialDelay: Option[FiniteDuration]): RepeatConfig[E, T]

Creates a config that repeats up to a given number of times, with no interval between subsequent invocations and optional initial delay.

Creates a config that repeats up to a given number of times, with no interval between subsequent invocations and optional initial delay.

Value parameters

initialDelay

The initial delay before the first invocation.

maxInvocations

The maximum number of invocations.

Attributes

def immediateForever[E, T](initialDelay: Option[FiniteDuration]): RepeatConfig[E, T]

Creates a config that repeats indefinitely, with no interval between subsequent invocations and optional initial delay.

Creates a config that repeats indefinitely, with no interval between subsequent invocations and optional initial delay.

Value parameters

initialDelay

The initial delay before the first invocation.

Attributes