public abstract class AbstractBrpcChannel extends Object implements BrpcChannel
| 限定符和类型 | 字段和说明 |
|---|---|
protected io.netty.bootstrap.Bootstrap |
bootstrap |
protected String |
ip |
protected int |
port |
protected Protocol |
protocol |
| 构造器和说明 |
|---|
AbstractBrpcChannel(String ip,
int port,
io.netty.bootstrap.Bootstrap bootstrap,
Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.Channel |
connect(String ip,
int port) |
boolean |
equals(Object object) |
long |
getFailedNum() |
String |
getIp() |
Queue<Integer> |
getLatencyWindow() |
int |
getPort() |
Protocol |
getProtocol() |
int |
hashCode() |
void |
incFailedNum() |
void |
updateChannel(io.netty.channel.Channel channel) |
void |
updateLatency(int latency) |
void |
updateLatencyWithReadTimeOut() |
close, 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 在接口中 BrpcChannelpublic io.netty.channel.Channel connect(String ip, int port)
connect 在接口中 BrpcChannelpublic String getIp()
getIp 在接口中 BrpcChannelpublic int getPort()
getPort 在接口中 BrpcChannelpublic long getFailedNum()
getFailedNum 在接口中 BrpcChannelpublic void incFailedNum()
incFailedNum 在接口中 BrpcChannelpublic Queue<Integer> getLatencyWindow()
getLatencyWindow 在接口中 BrpcChannelpublic void updateLatency(int latency)
updateLatency 在接口中 BrpcChannelpublic void updateLatencyWithReadTimeOut()
updateLatencyWithReadTimeOut 在接口中 BrpcChannelpublic Protocol getProtocol()
getProtocol 在接口中 BrpcChannelpublic int hashCode()
hashCode 在接口中 BrpcChannelhashCode 在类中 Objectpublic boolean equals(Object object)
equals 在接口中 BrpcChannelequals 在类中 ObjectCopyright © 2019 Baidu, Inc.. All rights reserved.