UNPKG

pg-transactional-outbox

Version:

A PostgreSQL based transactional outbox and inbox pattern implementation to support exactly once message processing (with at least once message delivery).

17 lines 798 B
import { FullListenerConfig } from '../common/listener-config'; import { StoredTransactionalMessage } from '../message/transactional-message'; /** * Defines how much time in milliseconds a given message is allowed to take * before the processing of that message is cancelled. * @param message The outbox or inbox message * @returns The time in milliseconds for the timeout */ export interface MessageProcessingTimeoutStrategy { (message: StoredTransactionalMessage): number; } /** * Get the default message processing timeout strategy which uses the * messageProcessingTimeoutInMs setting. */ export declare const defaultMessageProcessingTimeoutStrategy: (config: FullListenerConfig) => MessageProcessingTimeoutStrategy; //# sourceMappingURL=message-processing-timeout-strategy.d.ts.map