@citrineos/util
Version:
The OCPP util module which supplies helpful utilities like cache and queue connectors, etc.
14 lines (13 loc) • 550 B
TypeScript
import amqp from 'amqplib';
import { Logger, type ILogObj } from 'tslog';
import type { RabbitMQConnectionManager } from './ConnectionManager.js';
export declare class RabbitMQChannelManager {
private connectionManager;
private channelMap;
protected _logger: Logger<ILogObj>;
constructor(connectionManager: RabbitMQConnectionManager, logger?: Logger<ILogObj>);
getChannel(channelId: string): Promise<amqp.Channel>;
closeChannel(channelId: string): Promise<void>;
closeAll(): Promise<void>;
private recreateChannels;
}