RateLimitRetryConfig

data class RateLimitRetryConfig(val maxRetries: MaxRetries, val minDelaySeconds: MinDelaySeconds)

Configuration returned by OAuth2ClientConfiguration.rateLimitRetryCallback to control retry behavior after an HTTP 429 rate-limit response.

Return this from the callback to retry; return null to stop retrying and surface the failure.

Parameters

maxRetries

the maximum number of retry attempts after the initial 429 response.

minDelaySeconds

the minimum wait time in seconds before each retry attempt. The actual delay is max(retryAfterHeader, minDelaySeconds.value).

Constructors

Link copied to clipboard
constructor(maxRetries: MaxRetries, minDelaySeconds: MinDelaySeconds)

Properties

Link copied to clipboard
Link copied to clipboard