UNPKG

@nestjstools/messaging

Version:

Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.

12 lines (11 loc) 610 B
import { MessageResponse } from '../message/message-response'; import { IMessageBus } from './i-message-bus'; import { MessageBusCollection } from './message-bus.collection'; import { RoutingMessage } from '../message/routing-message'; import { NormalizerRegistry } from '../normalizer/normalizer.registry'; export declare class DistributedMessageBus implements IMessageBus { private messageBusCollection; private normalizerRegistry; constructor(messageBusCollection: MessageBusCollection, normalizerRegistry: NormalizerRegistry); dispatch(message: RoutingMessage): Promise<MessageResponse>; }