public class BrpcPooledChannel extends AbstractBrpcChannel
bootstrap, ip, port, protocol| 构造器和说明 |
|---|
BrpcPooledChannel(String ip,
int port,
RpcClient rpcClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
equals(Object obj) |
int |
getActiveConnectionNum() |
io.netty.channel.Channel |
getChannel() |
int |
getCurrentMaxConnection() |
long |
getFailedNum() |
int |
getIdleConnectionNum() |
Queue<Integer> |
getLatencyWindow() |
int |
hashCode() |
void |
incFailedNum() |
void |
removeChannel(io.netty.channel.Channel channel) |
void |
returnChannel(io.netty.channel.Channel channel) |
void |
updateLatency(int latency) |
void |
updateLatencyWithReadTimeOut() |
void |
updateMaxConnection(int num) |
connect, getIp, getPort, getProtocol, updateChannelpublic 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 boolean equals(Object obj)
equals 在接口中 BrpcChannelequals 在类中 AbstractBrpcChannelpublic int hashCode()
hashCode 在接口中 BrpcChannelhashCode 在类中 AbstractBrpcChannelpublic long getFailedNum()
getFailedNum 在接口中 BrpcChannelgetFailedNum 在类中 AbstractBrpcChannelpublic void incFailedNum()
incFailedNum 在接口中 BrpcChannelincFailedNum 在类中 AbstractBrpcChannelpublic Queue<Integer> getLatencyWindow()
getLatencyWindow 在接口中 BrpcChannelgetLatencyWindow 在类中 AbstractBrpcChannelpublic void updateLatency(int latency)
updateLatency 在接口中 BrpcChannelupdateLatency 在类中 AbstractBrpcChannelpublic void updateMaxConnection(int num)
public int getCurrentMaxConnection()
public int getActiveConnectionNum()
public int getIdleConnectionNum()
public void updateLatencyWithReadTimeOut()
Copyright © 2019 Baidu, Inc.. All rights reserved.