public class ChannelPool extends Object
NettyClient.| 构造器和说明 |
|---|
ChannelPool(RpcClient rpcClient,
String host,
int port)
Instantiates a new channel pool.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
getChannel()
Gets the channel.
|
void |
returnChannel(Connection channel)
Return channel.
|
void |
stop()
Stop.
|
public Connection getChannel()
public void returnChannel(Connection channel)
channel - the channelpublic void stop()
Copyright © 2022 Baidu, Inc.. All rights reserved.