@team-supercharge/nest-amqp
Version:
AMQP 1.0 module for Nest framework
26 lines (25 loc) • 741 B
TypeScript
import { Connection } from 'rhea-promise';
export declare class AMQConnectionStorage {
/**
* Add Connection to storage
*
* @param {string} name Name of the Connection, will be used as key
* @param {Connection} connection The connection object
*/
static add(name: string, connection: Connection): void;
/**
* Retreive stored Connection from storage
*
* @param {string} name Name of the connection
*
* @returns {Connection | null} The stored connection or null
*/
static get(name: string): Connection | null;
/**
* Get all connection keys
*
* @returns {string[]}
*/
static getConnectionNames(): string[];
private static readonly storage;
}