类 HeaderExchangeServer
- java.lang.Object
-
- com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeServer
-
- 所有已实现的接口:
Resetable
,Endpoint
,ExchangeServer
,Server
public class HeaderExchangeServer extends Object implements ExchangeServer
ExchangeServerImpl
-
-
构造器概要
构造器 构造器 说明 HeaderExchangeServer(Server server)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
close()
close the channel.void
close(int timeout)
Graceful close the channel.Channel
getChannel(InetSocketAddress remoteAddress)
get channel.ChannelHandler
getChannelHandler()
get channel handler.Collection<Channel>
getChannels()
get channels.ExchangeChannel
getExchangeChannel(InetSocketAddress remoteAddress)
get channel.Collection<ExchangeChannel>
getExchangeChannels()
get channels.InetSocketAddress
getLocalAddress()
get local address.Server
getServer()
URL
getUrl()
get url.boolean
isBound()
is bound.boolean
isClosed()
is closed.void
reset(Parameters parameters)
已过时。void
reset(URL url)
reset.void
send(Object message)
send message.void
send(Object message, boolean sent)
send message.void
startClose()
-
-
-
构造器详细资料
-
HeaderExchangeServer
public HeaderExchangeServer(Server server)
-
-
方法详细资料
-
getServer
public Server getServer()
-
isClosed
public boolean isClosed()
从接口复制的说明:Endpoint
is closed.
-
close
public void close(int timeout)
从接口复制的说明:Endpoint
Graceful close the channel.
-
startClose
public void startClose()
- 指定者:
startClose
在接口中Endpoint
-
getExchangeChannels
public Collection<ExchangeChannel> getExchangeChannels()
从接口复制的说明:ExchangeServer
get channels.- 指定者:
getExchangeChannels
在接口中ExchangeServer
- 返回:
- channels
-
getExchangeChannel
public ExchangeChannel getExchangeChannel(InetSocketAddress remoteAddress)
从接口复制的说明:ExchangeServer
get channel.- 指定者:
getExchangeChannel
在接口中ExchangeServer
- 返回:
- channel
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:Server
get channels.- 指定者:
getChannels
在接口中Server
- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:Server
get channel.- 指定者:
getChannel
在接口中Server
- 返回:
- channel
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:Endpoint
get local address.- 指定者:
getLocalAddress
在接口中Endpoint
- 返回:
- local address.
-
getChannelHandler
public ChannelHandler getChannelHandler()
从接口复制的说明:Endpoint
get channel handler.- 指定者:
getChannelHandler
在接口中Endpoint
- 返回:
- channel handler
-
reset
@Deprecated public void reset(Parameters parameters)
已过时。
-
send
public void send(Object message) throws RemotingException
从接口复制的说明:Endpoint
send message.- 指定者:
send
在接口中Endpoint
- 抛出:
RemotingException
-
send
public void send(Object message, boolean sent) throws RemotingException
从接口复制的说明:Endpoint
send message.- 指定者:
send
在接口中Endpoint
sent
- already sent to socket?- 抛出:
RemotingException
-
-