Backoff

ox.retry.Schedule.Backoff
See theBackoff companion object
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.

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def nextDelay(attempt: Int, lastDelay: Option[FiniteDuration]): FiniteDuration

Attributes

Definition Classes
Schedule

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product