API reference / @node-ts/bus-core / RetryStrategy
Interface: RetryStrategy
Defined in: packages/bus-core/src/retry-strategy/retry-strategy.ts:7
Defines how a message retry strategy is to be implemented that calculates the delay between subsequent retries of a message.
Methods
calculateRetryDelay()
ts
calculateRetryDelay(currentAttempt): number;Defined in: packages/bus-core/src/retry-strategy/retry-strategy.ts:13
Calculate the delay between retrying a failed message
Parameters
| Parameter | Type | Description |
|---|---|---|
currentAttempt | number | How many attempts at handling the message have failed |
Returns
number
The number of milliseconds to delay retrying a failed message attempt