BackoffStrategy

fun interface BackoffStrategy

A strategy for backing off (delaying) before a retry.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun backoff(context: RetryContext<*>): Duration

Returns the Duration to wait for before retrying the request for the given retry number.

Link copied to clipboard
open fun withJitter(factor: Double = 1.0): BackoffStrategy

Returns a BackoffStrategy that applies full jitter to this BackoffStrategy, where the degree of "fullness" is specified by the given factor.