类 ExchangeServerDelegate
- java.lang.Object
-
- com.alibaba.dubbo.remoting.exchange.support.ExchangeServerDelegate
-
- 所有已实现的接口:
Resetable
,Endpoint
,ExchangeServer
,Server
- 直接已知子类:
ExchangeServerPeer
public class ExchangeServerDelegate extends Object implements ExchangeServer
ExchangeServerDelegate
-
-
构造器概要
构造器 构造器 说明 ExchangeServerDelegate()
ExchangeServerDelegate(ExchangeServer 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.ExchangeServer
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
setServer(ExchangeServer server)
void
startClose()
-
-
-
构造器详细资料
-
ExchangeServerDelegate
public ExchangeServerDelegate()
-
ExchangeServerDelegate
public ExchangeServerDelegate(ExchangeServer server)
-
-
方法详细资料
-
getServer
public ExchangeServer getServer()
-
setServer
public void setServer(ExchangeServer server)
-
reset
@Deprecated public void reset(Parameters parameters)
已过时。
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:Server
get channels.- 指定者:
getChannels
在接口中Server
- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:Server
get channel.- 指定者:
getChannel
在接口中Server
- 返回:
- channel
-
getChannelHandler
public ChannelHandler getChannelHandler()
从接口复制的说明:Endpoint
get channel handler.- 指定者:
getChannelHandler
在接口中Endpoint
- 返回:
- channel handler
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:Endpoint
get local address.- 指定者:
getLocalAddress
在接口中Endpoint
- 返回:
- local address.
-
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
-
isClosed
public boolean isClosed()
从接口复制的说明:Endpoint
is closed.
-
getExchangeChannels
public Collection<ExchangeChannel> getExchangeChannels()
从接口复制的说明:ExchangeServer
get channels.- 指定者:
getExchangeChannels
在接口中ExchangeServer
- 返回:
- channels
-
getExchangeChannel
public ExchangeChannel getExchangeChannel(InetSocketAddress remoteAddress)
从接口复制的说明:ExchangeServer
get channel.- 指定者:
getExchangeChannel
在接口中ExchangeServer
- 返回:
- channel
-
close
public void close(int timeout)
从接口复制的说明:Endpoint
Graceful close the channel.
-
startClose
public void startClose()
- 指定者:
startClose
在接口中Endpoint
-
-