UNPKG

couchbase

Version:

The official Couchbase Node.js Client Library.

38 lines (37 loc) 940 B
import { Cluster } from './cluster'; import { WaitUntilReadyOptions } from './diagnosticstypes'; /** * @internal */ export declare class WaitUntilReadyExecutor { private _cluster; private _bucketName; private _diagExec; private _pingExec; /** * @internal */ constructor(cluster: Cluster, bucketName?: string); /** * Checks whether the endpoints for a single service satisfy the desired cluster state. * * @internal */ private _meetsDesiredState; /** * Logs any ping endpoints that reported an error, at warn level. * * @internal */ private _logPingErrors; /** * Builds the set of services to wait on, either from the user provided list or via discovery ping. * * @internal */ private _resolveWaitSet; /** * @internal */ waitUntilReady(timeout: number, options: WaitUntilReadyOptions): Promise<void>; }