public class BrpcShortChannel extends AbstractBrpcChannel
bootstrap, bootstrapManager, communicationOptions, serviceInstance| Constructor and Description |
|---|
BrpcShortChannel(ServiceInstance instance,
CommunicationOptions communicationOptions) |
| Modifier and Type | Method and Description |
|---|---|
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, CommunicationOptions communicationOptions)
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()
close in interface BrpcChannelclose in class AbstractBrpcChannelpublic void updateMaxConnection(int num)
public int getCurrentMaxConnection()
public int getActiveConnectionNum()
public int getIdleConnectionNum()
Copyright © 2022 Baidu, Inc.. All rights reserved.