public abstract class AbstractBrpcChannelGroup extends Object implements BrpcChannelGroup
| 限定符和类型 | 字段和说明 |
|---|---|
protected io.netty.bootstrap.Bootstrap |
bootstrap |
protected String |
ip |
protected int |
port |
protected Protocol |
protocol |
| 构造器和说明 |
|---|
AbstractBrpcChannelGroup(String ip,
int port,
io.netty.bootstrap.Bootstrap bootstrap,
Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.Channel |
connect(String ip,
int port) |
long |
getFailedNum() |
String |
getIp() |
Queue<Integer> |
getLatencyWindow() |
int |
getPort() |
Protocol |
getProtocol() |
void |
incFailedNum() |
void |
updateChannel(io.netty.channel.Channel channel) |
void |
updateLatency(int latency) |
void |
updateLatencyWithReadTimeOut() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getActiveConnectionNum, getChannel, getCurrentMaxConnection, getIdleConnectionNum, removeChannel, returnChannel, updateMaxConnectionprotected String ip
protected int port
protected io.netty.bootstrap.Bootstrap bootstrap
protected Protocol protocol
public void updateChannel(io.netty.channel.Channel channel)
updateChannel 在接口中 BrpcChannelGrouppublic io.netty.channel.Channel connect(String ip, int port)
connect 在接口中 BrpcChannelGrouppublic String getIp()
getIp 在接口中 BrpcChannelGrouppublic int getPort()
getPort 在接口中 BrpcChannelGrouppublic long getFailedNum()
getFailedNum 在接口中 BrpcChannelGrouppublic void incFailedNum()
incFailedNum 在接口中 BrpcChannelGrouppublic Queue<Integer> getLatencyWindow()
getLatencyWindow 在接口中 BrpcChannelGrouppublic void updateLatency(int latency)
updateLatency 在接口中 BrpcChannelGrouppublic void updateLatencyWithReadTimeOut()
updateLatencyWithReadTimeOut 在接口中 BrpcChannelGrouppublic Protocol getProtocol()
getProtocol 在接口中 BrpcChannelGroupCopyright © 2019 Baidu, Inc.. All rights reserved.