ExponentialBackOff

class ExponentialBackOff(initialDelay: Duration = 1.seconds, factor: Double = 2.0) : RetryDelayStrategy(source)

A RetryDelayStrategy where the delay is multiplied by a constant factor after each attempt.

Constructors

Link copied to clipboard
constructor(initialDelay: Duration = 1.seconds, factor: Double = 2.0)

Functions

Link copied to clipboard
open override fun computeDelay(attempt: Int): Duration

Calculates the time to wait before the given attempt.