public final class ReferenceCountExchangeClient extends Object implements ExchangeClient
| 构造器和说明 |
|---|
ReferenceCountExchangeClient(ExchangeClient client,
ConcurrentMap<String,net.jahhan.extension.protocol.LazyConnectExchangeClient> ghostClientMap) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
close(int timeout) |
Object |
getAttribute(String key) |
ChannelHandler |
getChannelHandler() |
ExchangeHandler |
getExchangeHandler() |
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
com.alibaba.dubbo.common.URL |
getUrl() |
boolean |
hasAttribute(String key) |
void |
incrementAndGetCount() |
boolean |
isClosed() |
boolean |
isConnected() |
void |
reconnect() |
void |
removeAttribute(String key) |
ResponseFuture |
request(Object request) |
ResponseFuture |
request(Object request,
int timeout) |
void |
reset(com.alibaba.dubbo.common.Parameters parameters) |
void |
reset(com.alibaba.dubbo.common.URL url) |
void |
send(Object message) |
void |
send(Object message,
boolean sent) |
void |
setAttribute(String key,
Object value) |
void |
startClose() |
public ReferenceCountExchangeClient(ExchangeClient client, ConcurrentMap<String,net.jahhan.extension.protocol.LazyConnectExchangeClient> ghostClientMap)
public void reset(com.alibaba.dubbo.common.URL url)
reset 在接口中 com.alibaba.dubbo.common.Resetablepublic ResponseFuture request(Object request) throws RemotingException
request 在接口中 ExchangeChannelRemotingExceptionpublic InetSocketAddress getRemoteAddress()
getRemoteAddress 在接口中 Channelpublic ChannelHandler getChannelHandler()
getChannelHandler 在接口中 Endpointpublic ResponseFuture request(Object request, int timeout) throws RemotingException
request 在接口中 ExchangeChannelRemotingExceptionpublic boolean isConnected()
isConnected 在接口中 Channelpublic void reconnect()
throws RemotingException
reconnect 在接口中 ClientRemotingExceptionpublic InetSocketAddress getLocalAddress()
getLocalAddress 在接口中 Endpointpublic boolean hasAttribute(String key)
hasAttribute 在接口中 Channelpublic void send(Object message) throws RemotingException
send 在接口中 EndpointRemotingExceptionpublic ExchangeHandler getExchangeHandler()
getExchangeHandler 在接口中 ExchangeChannelpublic Object getAttribute(String key)
getAttribute 在接口中 Channelpublic void send(Object message, boolean sent) throws RemotingException
send 在接口中 EndpointRemotingExceptionpublic void setAttribute(String key, Object value)
setAttribute 在接口中 Channelpublic void removeAttribute(String key)
removeAttribute 在接口中 Channelpublic void close(int timeout)
close 在接口中 Endpointclose 在接口中 ExchangeChannelpublic void incrementAndGetCount()
public void startClose()
startClose 在接口中 EndpointCopyright © 2018. All rights reserved.