1 | import { SubchannelRef } from "./channelz";
|
2 | import { ConnectivityState } from "./connectivity-state";
|
3 | import { Subchannel } from "./subchannel";
|
4 | export declare type ConnectivityStateListener = (subchannel: SubchannelInterface, previousState: ConnectivityState, newState: ConnectivityState) => void;
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export interface SubchannelInterface {
|
15 | getConnectivityState(): ConnectivityState;
|
16 | addConnectivityStateListener(listener: ConnectivityStateListener): void;
|
17 | removeConnectivityStateListener(listener: ConnectivityStateListener): void;
|
18 | startConnecting(): void;
|
19 | getAddress(): string;
|
20 | ref(): void;
|
21 | unref(): void;
|
22 | getChannelzRef(): SubchannelRef;
|
23 | |
24 |
|
25 |
|
26 | getRealSubchannel(): Subchannel;
|
27 | }
|
28 | export declare abstract class BaseSubchannelWrapper implements SubchannelInterface {
|
29 | protected child: SubchannelInterface;
|
30 | constructor(child: SubchannelInterface);
|
31 | getConnectivityState(): ConnectivityState;
|
32 | addConnectivityStateListener(listener: ConnectivityStateListener): void;
|
33 | removeConnectivityStateListener(listener: ConnectivityStateListener): void;
|
34 | startConnecting(): void;
|
35 | getAddress(): string;
|
36 | ref(): void;
|
37 | unref(): void;
|
38 | getChannelzRef(): SubchannelRef;
|
39 | getRealSubchannel(): Subchannel;
|
40 | }
|