Connectum API Reference / @connectum/interceptors / RetryOptions
Interface: RetryOptions ​
Defined in: types.ts:157
Retry interceptor options
Properties ​
initialDelay? ​
optionalinitialDelay?:number
Defined in: types.ts:172
Initial scale in milliseconds for exponential decorrelated jitter. Actual retry delays are randomized rather than a fixed sequence. Integer from 0 to 2147483647 (the platform timer ceiling).
Default ​
200maxDelay? ​
optionalmaxDelay?:number
Defined in: types.ts:179
Maximum delay in milliseconds for exponential backoff. Integer from 0 to 2147483647 (the platform timer ceiling).
Default ​
5000maxRetries? ​
optionalmaxRetries?:number
Defined in: types.ts:164
Maximum number of retries after the initial attempt. Non-negative finite fractional values retain the retry-count comparison: for example, 0.5 allows one retry. NaN, Infinity and negative values are refused.
Default ​
3retryableCodes? ​
optionalretryableCodes?:Code[]
Defined in: types.ts:192
Error codes that trigger a retry
Default ​
[Code.Unavailable, Code.ResourceExhausted]skipStreaming? ​
optionalskipStreaming?:boolean
Defined in: types.ts:186
Skip retry for streaming requests. If false, retry covers opening the response, not failures during iteration of an already opened stream.
Default ​
true