public interface BrpcChannel
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
io.netty.channel.Channel |
connect(String ip,
int port) |
boolean |
equals(Object object) |
int |
getActiveConnectionNum() |
io.netty.channel.Channel |
getChannel() |
int |
getCurrentMaxConnection() |
long |
getFailedNum() |
int |
getIdleConnectionNum() |
Queue<Integer> |
getLatencyWindow() |
Protocol |
getProtocol() |
ServiceInstance |
getServiceInstance() |
int |
hashCode() |
void |
incFailedNum() |
void |
removeChannel(io.netty.channel.Channel channel) |
void |
returnChannel(io.netty.channel.Channel channel) |
void |
updateChannel(io.netty.channel.Channel channel) |
void |
updateLatency(int latency) |
void |
updateLatencyWithReadTimeOut() |
void |
updateMaxConnection(int num) |
io.netty.channel.Channel getChannel()
throws Exception,
NoSuchElementException,
IllegalStateException
void returnChannel(io.netty.channel.Channel channel)
void removeChannel(io.netty.channel.Channel channel)
void updateChannel(io.netty.channel.Channel channel)
void close()
io.netty.channel.Channel connect(String ip, int port)
ServiceInstance getServiceInstance()
long getFailedNum()
void incFailedNum()
void updateLatency(int latency)
void updateLatencyWithReadTimeOut()
Protocol getProtocol()
void updateMaxConnection(int num)
int getCurrentMaxConnection()
int getActiveConnectionNum()
int getIdleConnectionNum()
Copyright © 2019 Baidu, Inc.. All rights reserved.