public class BrpcShortChannel extends AbstractBrpcChannelGroup
bootstrap, ip, port, protocol| 构造器和说明 |
|---|
BrpcShortChannel(String ip,
int port,
RpcClient rpcClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
int |
getActiveConnectionNum() |
io.netty.channel.Channel |
getChannel() |
int |
getCurrentMaxConnection() |
int |
getIdleConnectionNum() |
void |
removeChannel(io.netty.channel.Channel channel) |
void |
returnChannel(io.netty.channel.Channel channel) |
void |
updateMaxConnection(int num) |
connect, getFailedNum, getIp, getLatencyWindow, getPort, getProtocol, incFailedNum, updateChannel, updateLatency, updateLatencyWithReadTimeOutpublic io.netty.channel.Channel getChannel()
throws Exception,
NoSuchElementException,
IllegalStateException
public void returnChannel(io.netty.channel.Channel channel)
public void removeChannel(io.netty.channel.Channel channel)
public void close()
public void updateMaxConnection(int num)
public int getCurrentMaxConnection()
public int getActiveConnectionNum()
public int getIdleConnectionNum()
Copyright © 2019 Baidu, Inc.. All rights reserved.