public interface BrpcChannel
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
io.netty.channel.Channel |
connect() |
int |
getActiveConnectionNum() |
io.netty.channel.Channel |
getChannel() |
int |
getCurrentMaxConnection() |
long |
getFailedNum() |
int |
getIdleConnectionNum() |
Queue<Integer> |
getLatencyWindow() |
Protocol |
getProtocol() |
ServiceInstance |
getServiceInstance() |
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()
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 © 2020 Baidu, Inc.. All rights reserved.