load-balancer-round-robin.d.ts
796 Bytes
import { LoadBalancer, ChannelControlHelper, LoadBalancingConfig } from './load-balancer';
import { SubchannelAddress } from './subchannel';
export declare class RoundRobinLoadBalancer implements LoadBalancer {
private readonly channelControlHelper;
private subchannels;
private currentState;
private subchannelStateListener;
private subchannelStateCounts;
private currentReadyPicker;
constructor(channelControlHelper: ChannelControlHelper);
private calculateAndUpdateState;
private updateState;
private resetSubchannelList;
updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig): void;
exitIdle(): void;
resetBackoff(): void;
destroy(): void;
getTypeName(): string;
}
export declare function setup(): void;