Rocky_Mountain_Vending/.pnpm-store/v10/files/2f/10427e4107b7efa894862e267878be346f72db9390c466146f48513f1e6e9ae706eecd726d7e9274c670b79675bceb86d0deeb4b92d117334fe8580a2347f9
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

34 lines
972 B
Text

import type { RequestContext } from "../transfer";
import type { ConnectConfiguration } from "./config";
/**
* @public
*/
export interface ConnectionManagerConfiguration {
/**
* Maximum number of allowed concurrent requests per connection.
*/
maxConcurrency?: number;
/**
* Disables concurrent requests per connection.
*/
disableConcurrency?: boolean;
}
/**
* @public
*/
export interface ConnectionManager<T> {
/**
* Retrieves a connection from the connection pool if available,
* otherwise establish a new connection
*/
lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): T;
/**
* Releases the connection back to the pool making it potentially
* re-usable by other requests.
*/
release(requestContext: RequestContext, connection: T): void;
/**
* Destroys the connection manager. All connections will be closed.
*/
destroy(): void;
}