|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.remoting.exchange.support.ExchangeServerDelegate
public class ExchangeServerDelegate
ExchangeServerDelegate
Constructor Summary | |
---|---|
ExchangeServerDelegate()
|
|
ExchangeServerDelegate(ExchangeServer server)
|
Method Summary | |
---|---|
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)
Deprecated. |
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExchangeServerDelegate()
public ExchangeServerDelegate(ExchangeServer server)
Method Detail |
---|
public ExchangeServer getServer()
public void setServer(ExchangeServer server)
public boolean isBound()
Server
isBound
in interface Server
public void reset(URL url)
Resetable
reset
in interface Resetable
@Deprecated public void reset(Parameters parameters)
reset
in interface Server
public Collection<Channel> getChannels()
Server
getChannels
in interface Server
public Channel getChannel(InetSocketAddress remoteAddress)
Server
getChannel
in interface Server
public URL getUrl()
Endpoint
getUrl
in interface Endpoint
public ChannelHandler getChannelHandler()
Endpoint
getChannelHandler
in interface Endpoint
public InetSocketAddress getLocalAddress()
Endpoint
getLocalAddress
in interface Endpoint
public void send(Object message) throws RemotingException
Endpoint
send
in interface Endpoint
RemotingException
public void send(Object message, boolean sent) throws RemotingException
Endpoint
send
in interface Endpoint
sent
- 是否已发送完成
RemotingException
public void close()
Endpoint
close
in interface Endpoint
public boolean isClosed()
Endpoint
isClosed
in interface Endpoint
public Collection<ExchangeChannel> getExchangeChannels()
ExchangeServer
getExchangeChannels
in interface ExchangeServer
public ExchangeChannel getExchangeChannel(InetSocketAddress remoteAddress)
ExchangeServer
getExchangeChannel
in interface ExchangeServer
public void close(int timeout)
Endpoint
close
in interface Endpoint
public void startClose()
startClose
in interface Endpoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |