Schedule

ox.scheduling.Schedule
See theSchedule companion trait
object Schedule

Attributes

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

Members list

Type members

Classlikes

case class Backoff(maxRepeats: Int, firstDuration: FiniteDuration, maxDuration: FiniteDuration, jitter: Jitter)

A schedule that represents an increasing duration between invocations (backoff), up to a given number of times.

A schedule that represents an increasing duration between invocations (backoff), up to a given number of times.

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

Value parameters

firstDuration

The duration between the first and the second invocations.

jitter

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

maxDuration

The maximum duration between subsequent invocations.

maxRepeats

The maximum number of repeats.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Schedule
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 Fixed(maxRepeats: Int, duration: FiniteDuration)

A schedule that represents a fixed duration between invocations, up to a given number of times.

A schedule that represents a fixed duration between invocations, up to a given number of times.

Value parameters

duration

The duration between subsequent invocations.

maxRepeats

The maximum number of repeats.

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Fixed.type
case class Immediate(maxRepeats: Int)

A schedule that represents an immediate invocation, up to a given number of times.

A schedule that represents an immediate invocation, up to a given number of times.

Value parameters

maxRepeats

The maximum number of invocations.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Schedule
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
case class InitialDelay(delay: FiniteDuration)

A schedule that represents an initial delay applied before the first invocation of operation being scheduled. Usually used in combination with other schedules using andThen

A schedule that represents an initial delay applied before the first invocation of operation being scheduled. Usually used in combination with other schedules using andThen

Value parameters

delay

The initial delay.

Attributes

Example
 Schedule.InitialDelay(1.second).andThen(Schedule.Delay.forever(100.millis))
Supertypes
trait Serializable
trait Product
trait Equals
trait Schedule
class Object
trait Matchable
class Any
Show all

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