UNPKG

@logistically/events

Version:

A production-ready event-driven architecture library for NestJS with Redis Streams, comprehensive batching, reliable consumption, and enterprise-grade features.

12 lines (11 loc) 672 B
import { BatchingStrategy, BatchMessage, BatchEnvelope, BatchingTypeStrategy } from '../batching-strategy'; export declare class ConsoleBatchingStrategy implements BatchingStrategy { private batchingTypeStrategy; constructor(batchingTypeStrategy?: BatchingTypeStrategy); canBatchTogether(message1: BatchMessage, message2: BatchMessage): boolean; createBatchEnvelope(messages: BatchMessage[]): BatchEnvelope; sendBatch(transport: any, batchEnvelope: BatchEnvelope): Promise<void>; sendIndividualMessages(basePublisher: any, messages: BatchMessage[]): Promise<void>; getBatchStreamName(): string; getBatchingKey(eventType: string): string; }