Interface: RetryStrategy
Defined in: src/retry/retry-strategy.ts:12
Retry strategy that controls the delay between attempts and the maximum number of retries.
Delays may be fixed or dynamic, using the time strategies accessible from retryStrategies.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
maxRetries? | number | Maximum number of retry attempts. After this many failed attempts, a TooManyRetriesError is thrown. | src/retry/retry-strategy.ts:23 |
reconnectionTimeoutMs? | number | TimeStrategy | Delay before the next retry attempt, in milliseconds. Can be a fixed number or a TimeStrategy function from retryStrategies for dynamic backoff. | src/retry/retry-strategy.ts:17 |