UNPKG

815 BTypeScriptView Raw
1import { LoadBalancer, ChannelControlHelper, LoadBalancingConfig } from './load-balancer';
2import { SubchannelAddress } from './subchannel-address';
3export declare class ChildLoadBalancerHandler implements LoadBalancer {
4 private readonly channelControlHelper;
5 private currentChild;
6 private pendingChild;
7 private ChildPolicyHelper;
8 constructor(channelControlHelper: ChannelControlHelper);
9 /**
10 * Prerequisites: lbConfig !== null and lbConfig.name is registered
11 * @param addressList
12 * @param lbConfig
13 * @param attributes
14 */
15 updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig, attributes: {
16 [key: string]: unknown;
17 }): void;
18 exitIdle(): void;
19 resetBackoff(): void;
20 destroy(): void;
21 getTypeName(): string;
22}