Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
1.4 KiB
Text
26 lines
1.4 KiB
Text
import type * as Lantern from '../types/types.js';
|
|
import { TCPConnection } from './TCPConnection.js';
|
|
export declare class ConnectionPool {
|
|
options: Required<Lantern.Simulation.Options>;
|
|
records: Lantern.NetworkRequest[];
|
|
connectionsByOrigin: Map<string, TCPConnection[]>;
|
|
connectionsByRequest: Map<Lantern.NetworkRequest, TCPConnection>;
|
|
_connectionsInUse: Set<TCPConnection>;
|
|
connectionReusedByRequestId: Map<string, boolean>;
|
|
constructor(records: Lantern.NetworkRequest[], options: Required<Lantern.Simulation.Options>);
|
|
connectionsInUse(): TCPConnection[];
|
|
initializeConnections(): void;
|
|
findAvailableConnectionWithLargestCongestionWindow(connections: TCPConnection[]): TCPConnection | null;
|
|
/**
|
|
* This method finds an available connection to the origin specified by the network request or null
|
|
* if no connection was available. If returned, connection will not be available for other network
|
|
* records until release is called.
|
|
*/
|
|
acquire(request: Lantern.NetworkRequest): TCPConnection | null;
|
|
/**
|
|
* Return the connection currently being used to fetch a request. If no connection
|
|
* currently being used for this request, an error will be thrown.
|
|
*/
|
|
acquireActiveConnectionFromRequest(request: Lantern.NetworkRequest): TCPConnection;
|
|
release(request: Lantern.NetworkRequest): void;
|
|
}
|