UNPKG

@n8n-plus/n8n-plus

Version:

n8n Workflow Automation Tool (plus edition)

25 lines (24 loc) 1.16 kB
import { Logger } from '@n8n/backend-common'; import { ExecutionsConfig, GlobalConfig } from '@n8n/config'; import type { Redis as SingleNodeClient, Cluster as MultiNodeClient } from 'ioredis'; import { InstanceSettings } from 'n8n-core'; import { RedisClientService } from '../../services/redis-client.service'; import { PubSubEventBus } from './pubsub.eventbus'; export declare class Subscriber { private readonly logger; private readonly instanceSettings; private readonly pubsubEventBus; private readonly redisClientService; private readonly executionsConfig; private readonly globalConfig; private readonly client; private readonly commandChannel; private readonly workerResponseChannel; constructor(logger: Logger, instanceSettings: InstanceSettings, pubsubEventBus: PubSubEventBus, redisClientService: RedisClientService, executionsConfig: ExecutionsConfig, globalConfig: GlobalConfig); getClient(): SingleNodeClient | MultiNodeClient; getCommandChannel(): string; getWorkerResponseChannel(): string; shutdown(): void; subscribe(channel: string): Promise<void>; private parseMessage; }