Spotify Retry Config
data class SpotifyRetryConfig(val maxRetries: Int = 3, val retryOnRateLimit: Boolean = true, val retryOnConnectionException: Boolean = true, val retryOnServerErrorsForSafeMethods: Boolean = true, val respectRetryAfterHeader: Boolean = true, val baseDelayMillis: Long = 500, val maxDelayMillis: Long)
Retry policy for SpotifyHttpClientFactory-built clients.
Parameters
max Retries
Maximum number of retry attempts per request.
retry On Rate Limit
Retry on HTTP 429 (Too Many Requests) responses.
retry On Connection Exception
Retry when the request fails before a response is received (for example connection refused or DNS failure).
retry On Server Errors For Safe Methods
Retry on HTTP 5xx responses, but only for idempotent methods (GET/PUT/DELETE). A 5xx on POST (for example queueing a track) is never retried, since that could double-execute a non-idempotent operation.
respect Retry After Header
Honor the Retry-After response header when present instead of the exponential backoff delay.
base Delay Millis
Base delay used by the exponential backoff between retries.
max Delay Millis
Upper bound applied to the computed retry delay.