UNPKG

804 BTypeScriptView Raw
1import { LoadBalancer, ChannelControlHelper, LoadBalancingConfig } from './load-balancer';
2import { SubchannelAddress } from './subchannel-address';
3export declare class RoundRobinLoadBalancer implements LoadBalancer {
4 private readonly channelControlHelper;
5 private subchannels;
6 private currentState;
7 private subchannelStateListener;
8 private subchannelStateCounts;
9 private currentReadyPicker;
10 constructor(channelControlHelper: ChannelControlHelper);
11 private calculateAndUpdateState;
12 private updateState;
13 private resetSubchannelList;
14 updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig): void;
15 exitIdle(): void;
16 resetBackoff(): void;
17 destroy(): void;
18 getTypeName(): string;
19}
20export declare function setup(): void;