ExponentialBackoffRetryDelaySupplier

Constructors

Link copied to clipboard
@Inject
constructor()
constructor(incrementDuration: Duration)

Functions

Link copied to clipboard
open override fun getDelay(maxRetries: Int, remainingRetries: Int): Duration

Calculate an exponential backoff delay before retrying the next completion request using the equation:

Link copied to clipboard
open override fun maxDuration(maxRetries: Int): Duration

Returns the max duration if all retries are attempted.