redis-smq
Version:
A simple high-performance Redis message queue for Node.js.
11 lines (10 loc) • 616 B
TypeScript
import { Exchange } from './exchange';
import { EExchangeType, IFanOutExchangeParams, IRequiredConfig, TQueueParams } from '../../../types';
import { RedisClient } from 'redis-smq-common';
import { ICallback } from 'redis-smq-common/dist/types';
export declare class FanOutExchange extends Exchange<string, EExchangeType.FANOUT> {
constructor(fanOutName: string);
protected validateBindingParams(bindingParams: string): string;
getQueues(redisClient: RedisClient, config: IRequiredConfig, cb: ICallback<TQueueParams[]>): void;
static fromJSON(json: Partial<IFanOutExchangeParams>): FanOutExchange;
}