Companion

object Companion

Defaults

Properties

Link copied to clipboard

Default Strategy :

Functions

Link copied to clipboard
fun ExponentialDelay(retries: Int, delay: Duration, exponent: Double = 2.0, delayInitially: Boolean = true): RetryStrategy

Retry with exponential increase, by default, applied with since the first retry, and then *2, *4, *8...

Link copied to clipboard
fun FixedDelay(retries: Int, delay: Duration, delayInitially: Boolean = true): RetryStrategy

Retry retries times with a fixed delay, applied since the first retry by default.

Link copied to clipboard
fun Immediate(retries: Int): RetryStrategy

Retry retries times immediately with no delay.

Link copied to clipboard

Retry infinitely until store is closed or succeeded.

Link copied to clipboard
fun Once(delay: Duration = Duration.ZERO): RetryStrategy

Retry once with a delay that is 0 by default.