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