RetryConfig

data class RetryConfig(val retryCount: Int, val failureReason: FailureReason)(source)

Constructors

Link copied to clipboard
constructor(retryCount: Int, failureReason: FailureReason)

Properties

Link copied to clipboard
Link copied to clipboard

The number of the current retry (i.e. starts at 1 and counts up).

Functions

Link copied to clipboard

Disables the delay limit.

Link copied to clipboard

Disables the retry limit.

Link copied to clipboard
fun capDelayAt(amount: Duration)

Limits the delay between retries. Duration.ZERO means all retries will happen right after one another, with no delay.

Link copied to clipboard
fun capRetriesAt(amount: Int)

Limits the amount of retries. 0 (or negative numbers) mean no retries will be made.

Link copied to clipboard
fun retry()

Indicates that the request should be retried.

Link copied to clipboard

Indicates that the request should be dropped and not retried any further.