Skip to content

amqpx v1.0.1


amqpx / index / RetryStrategy

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 ​

PropertyTypeDescriptionDefined in
maxRetries?numberMaximum number of retry attempts. After this many failed attempts, a TooManyRetriesError is thrown.src/retry/retry-strategy.ts:23
reconnectionTimeoutMs?number | TimeStrategyDelay 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

Released under the MIT License.