public class BrpcShortChannel extends AbstractBrpcChannel
bootstrap, protocol, rpcClient, serviceInstance| 构造器和说明 |
|---|
BrpcShortChannel(ServiceInstance instance,
RpcClient rpcClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
int |
getActiveConnectionNum() |
io.netty.channel.Channel |
getChannel() |
int |
getCurrentMaxConnection() |
int |
getIdleConnectionNum() |
void |
removeChannel(io.netty.channel.Channel channel) |
void |
returnChannel(io.netty.channel.Channel channel) |
void |
updateMaxConnection(int num) |
connect, equals, getFailedNum, getLatencyWindow, getProtocol, getServiceInstance, hashCode, incFailedNum, sendClientNameToServer, updateChannel, updateLatency, updateLatencyWithReadTimeOutpublic BrpcShortChannel(ServiceInstance instance, RpcClient rpcClient)
public 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 void updateMaxConnection(int num)
public int getCurrentMaxConnection()
public int getActiveConnectionNum()
public int getIdleConnectionNum()
Copyright © 2019 Baidu, Inc.. All rights reserved.