@grpc/grpc-js
Version:
gRPC Library for Node - pure JS implementation
25 lines (24 loc) • 1.01 kB
TypeScript
import { LoadBalancer, ChannelControlHelper, TypedLoadBalancingConfig } from './load-balancer';
import { Endpoint } from './subchannel-address';
import { ChannelOptions } from './channel-options';
import { StatusOr } from './call-interface';
export declare class RoundRobinLoadBalancer implements LoadBalancer {
private readonly channelControlHelper;
private children;
private currentState;
private currentReadyPicker;
private updatesPaused;
private childChannelControlHelper;
private lastError;
constructor(channelControlHelper: ChannelControlHelper);
private countChildrenWithState;
private calculateAndUpdateState;
private updateState;
private resetSubchannelList;
updateAddressList(maybeEndpointList: StatusOr<Endpoint[]>, lbConfig: TypedLoadBalancingConfig, options: ChannelOptions, resolutionNote: string): boolean;
exitIdle(): void;
resetBackoff(): void;
destroy(): void;
getTypeName(): string;
}
export declare function setup(): void;