1 | import { ChannelControlHelper, LoadBalancer, LoadBalancingConfig } from './load-balancer';
|
2 | import { ServiceConfig } from './service-config';
|
3 | import { ConfigSelector } from './resolver';
|
4 | import { StatusObject } from './call-interface';
|
5 | import { SubchannelAddress } from './subchannel-address';
|
6 | import { GrpcUri } from './uri-parser';
|
7 | import { ChannelOptions } from './channel-options';
|
8 | export interface ResolutionCallback {
|
9 | (serviceConfig: ServiceConfig, configSelector: ConfigSelector): void;
|
10 | }
|
11 | export interface ResolutionFailureCallback {
|
12 | (status: StatusObject): void;
|
13 | }
|
14 | export declare class ResolvingLoadBalancer implements LoadBalancer {
|
15 | private readonly target;
|
16 | private readonly channelControlHelper;
|
17 | private readonly channelOptions;
|
18 | private readonly onSuccessfulResolution;
|
19 | private readonly onFailedResolution;
|
20 | |
21 |
|
22 |
|
23 | private innerResolver;
|
24 | private childLoadBalancer;
|
25 | private latestChildState;
|
26 | private latestChildPicker;
|
27 | |
28 |
|
29 |
|
30 | private currentState;
|
31 | private readonly defaultServiceConfig;
|
32 | |
33 |
|
34 |
|
35 |
|
36 |
|
37 | private previousServiceConfig;
|
38 | |
39 |
|
40 |
|
41 | private readonly backoffTimeout;
|
42 | |
43 |
|
44 |
|
45 |
|
46 | private continueResolving;
|
47 | |
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 | constructor(target: GrpcUri, channelControlHelper: ChannelControlHelper, channelOptions: ChannelOptions, onSuccessfulResolution: ResolutionCallback, onFailedResolution: ResolutionFailureCallback);
|
60 | private updateResolution;
|
61 | private updateState;
|
62 | private handleResolutionFailure;
|
63 | exitIdle(): void;
|
64 | updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig | null): never;
|
65 | resetBackoff(): void;
|
66 | destroy(): void;
|
67 | getTypeName(): string;
|
68 | }
|