Sha256: ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882
Contents?: true
Size: 961 Bytes
Versions: 31
Compression:
Stored size: 961 Bytes
Contents
import Pool from './pool' import Dispatcher from './dispatcher' import { URL } from 'url' export default BalancedPool type BalancedPoolConnectOptions = Omit<Dispatcher.ConnectOptions, "origin">; declare class BalancedPool extends Dispatcher { constructor(url: string | string[] | URL | URL[], options?: Pool.Options); addUpstream(upstream: string | URL): BalancedPool; removeUpstream(upstream: string | URL): BalancedPool; upstreams: Array<string>; /** `true` after `pool.close()` has been called. */ closed: boolean; /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ destroyed: boolean; // Override dispatcher APIs. override connect( options: BalancedPoolConnectOptions ): Promise<Dispatcher.ConnectData>; override connect( options: BalancedPoolConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void ): void; }
Version data entries
31 entries across 31 versions & 4 rubygems