UNPKG

@goparrot/pubsub-event-bus

Version:
20 lines (19 loc) 524 B
import type { RetryStrategyEnum } from './RetryStrategyEnum'; import type { DelayType } from './DelayType'; export interface IRetryOptions { /** * Maximum number of retry attempts * @default 3 */ maxRetryAttempts?: number; /** * Delay before each attempt. A fixed value or a function * @default Math.floor(1000 * Math.exp(retryCount - 1)) */ delay?: DelayType; /** * Retry strategy to be used * @default DEAD_LETTER_TTL */ strategy?: RetryStrategyEnum; }