类 HeaderExchangeClient
- java.lang.Object
-
- com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeClient
-
- 所有已实现的接口:
Resetable,Channel,Client,Endpoint,ExchangeChannel,ExchangeClient
public class HeaderExchangeClient extends Object implements ExchangeClient
DefaultMessageClient
-
-
构造器概要
构造器 构造器 说明 HeaderExchangeClient(Client client, boolean needHeartbeat)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidclose()close the channel.voidclose(int timeout)Graceful close the channel.ObjectgetAttribute(String key)get attribute.ChannelHandlergetChannelHandler()get channel handler.ExchangeHandlergetExchangeHandler()get message handler.InetSocketAddressgetLocalAddress()get local address.InetSocketAddressgetRemoteAddress()get remote address.URLgetUrl()get url.booleanhasAttribute(String key)has attribute.booleanisClosed()is closed.booleanisConnected()is connected.voidreconnect()reconnect.voidremoveAttribute(String key)remove attribute.ResponseFuturerequest(Object request)send request.ResponseFuturerequest(Object request, int timeout)send request.voidreset(Parameters parameters)已过时。voidreset(URL url)reset.voidsend(Object message)send message.voidsend(Object message, boolean sent)send message.voidsetAttribute(String key, Object value)set attribute.voidstartClose()StringtoString()
-
-
-
构造器详细资料
-
HeaderExchangeClient
public HeaderExchangeClient(Client client, boolean needHeartbeat)
-
-
方法详细资料
-
request
public ResponseFuture request(Object request) throws RemotingException
从接口复制的说明:ExchangeChannelsend request.- 指定者:
request在接口中ExchangeChannel- 返回:
- response future
- 抛出:
RemotingException
-
getRemoteAddress
public InetSocketAddress getRemoteAddress()
从接口复制的说明:Channelget remote address.- 指定者:
getRemoteAddress在接口中Channel- 返回:
- remote address.
-
request
public ResponseFuture request(Object request, int timeout) throws RemotingException
从接口复制的说明:ExchangeChannelsend request.- 指定者:
request在接口中ExchangeChannel- 返回:
- response future
- 抛出:
RemotingException
-
getChannelHandler
public ChannelHandler getChannelHandler()
从接口复制的说明:Endpointget channel handler.- 指定者:
getChannelHandler在接口中Endpoint- 返回:
- channel handler
-
isConnected
public boolean isConnected()
从接口复制的说明:Channelis connected.- 指定者:
isConnected在接口中Channel- 返回:
- connected
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:Endpointget local address.- 指定者:
getLocalAddress在接口中Endpoint- 返回:
- local address.
-
getExchangeHandler
public ExchangeHandler getExchangeHandler()
从接口复制的说明:ExchangeChannelget message handler.- 指定者:
getExchangeHandler在接口中ExchangeChannel- 返回:
- message handler
-
send
public void send(Object message) throws RemotingException
从接口复制的说明:Endpointsend message.- 指定者:
send在接口中Endpoint- 抛出:
RemotingException
-
send
public void send(Object message, boolean sent) throws RemotingException
从接口复制的说明:Endpointsend message.- 指定者:
send在接口中Endpointsent- already sent to socket?- 抛出:
RemotingException
-
isClosed
public boolean isClosed()
从接口复制的说明:Endpointis closed.
-
close
public void close(int timeout)
从接口复制的说明:EndpointGraceful close the channel.- 指定者:
close在接口中Endpoint- 指定者:
close在接口中ExchangeChannel
-
startClose
public void startClose()
- 指定者:
startClose在接口中Endpoint
-
reset
@Deprecated public void reset(Parameters parameters)
已过时。
-
reconnect
public void reconnect() throws RemotingException从接口复制的说明:Clientreconnect.- 指定者:
reconnect在接口中Client- 抛出:
RemotingException
-
getAttribute
public Object getAttribute(String key)
从接口复制的说明:Channelget attribute.- 指定者:
getAttribute在接口中Channel- 参数:
key- key.- 返回:
- value.
-
setAttribute
public void setAttribute(String key, Object value)
从接口复制的说明:Channelset attribute.- 指定者:
setAttribute在接口中Channel- 参数:
key- key.value- value.
-
removeAttribute
public void removeAttribute(String key)
从接口复制的说明:Channelremove attribute.- 指定者:
removeAttribute在接口中Channel- 参数:
key- key.
-
hasAttribute
public boolean hasAttribute(String key)
从接口复制的说明:Channelhas attribute.- 指定者:
hasAttribute在接口中Channel- 参数:
key- key.- 返回:
- has or has not.
-
-