RetryPolicy

data class RetryPolicy(val initialDelay: Duration, val exponentiationFactor: Float, val maxDelay: Duration? = null, val maxAttempts: Int? = null, val maxDuration: Duration? = null)

Retry policy configuration.

Constructors

Link copied to clipboard
constructor(initialDelay: Duration, exponentiationFactor: Float, maxDelay: Duration? = null, maxAttempts: Int? = null, maxDuration: Duration? = null)

Types

Link copied to clipboard
data class Builder

Properties

Link copied to clipboard

Exponentiation factor to use when computing the next retry delay.

Link copied to clipboard

Initial retry delay for the first retry attempt.

Link copied to clipboard
val maxAttempts: Int? = null

Maximum number of attempts before giving up retrying.

Link copied to clipboard
val maxDelay: Duration? = null

Maximum delay between retries.

Link copied to clipboard
val maxDuration: Duration? = null

Maximum duration of the retry loop.