public abstract class AbstractChannelPoolSharableFactory extends Object implements ChannelPoolSharableFactory
| 构造器和说明 |
|---|
AbstractChannelPoolSharableFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getHostAddress(String host,
int port)
Gets the host address.
|
RpcChannel |
getOrCreateChannelPool(RpcClient rpcClient,
String host,
int port)
Gets the or create channel pool.
|
protected abstract Map<String,RpcChannel> |
getRpcChannelMap() |
protected abstract Map<String,RpcChannel> getRpcChannelMap()
protected String getHostAddress(String host, int port)
host - the hostport - the portpublic RpcChannel getOrCreateChannelPool(RpcClient rpcClient, String host, int port)
ChannelPoolSharableFactorygetOrCreateChannelPool 在接口中 ChannelPoolSharableFactoryrpcClient - the rpc clienthost - the hostport - the portCopyright © 2022 Baidu, Inc.. All rights reserved.