radius-read
Version:
Realtime Dashboard
50 lines (49 loc) • 1.13 kB
TypeScript
/**
* Request Pool Service
*/
export declare class RequestPoolService {
/**
* Request pool to manage pending requests.
* @date Jun 26, 2025 02:20:24 PM
* @author Biswaranjan Nayak
*
* @private
* @type {any[]}
*/
private static requestPool;
/**
* Creates an instance of RequestPoolService.
*/
constructor();
/**
* Adds a request to the request pool.
* @param request
*/
static add(request: any): void;
/**
* Removes a request from the request pool by its ReqId.
* @param reqId
*/
static remove(reqId: any): void;
/**
* Clears all requests from the request pool.
*/
static clear(): void;
/**
* Gets the current request pool.
* @returns
*/
static getPool(): any[];
/**
* Is the request with the specified ReqId pending?
* @param reqId
* @returns
*/
static isRequestPending(reqId: any): boolean;
/**
* Gets the request object from the pool by its ReqId.
* @param reqId
* @returns
*/
static getRequestObject(reqId: any): boolean;
}