|
||||||||||
| 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)
|
| 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 Serverpublic void reset(URL url)
Resetable
reset in interface Resetable@Deprecated public void reset(Parameters parameters)
reset in interface Serverpublic Collection<Channel> getChannels()
Server
getChannels in interface Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
Server
getChannel in interface Serverpublic URL getUrl()
Endpoint
getUrl in interface Endpointpublic ChannelHandler getChannelHandler()
Endpoint
getChannelHandler in interface Endpointpublic InetSocketAddress getLocalAddress()
Endpoint
getLocalAddress in interface Endpoint
public void send(Object message)
throws RemotingException
Endpoint
send in interface EndpointRemotingException
public void send(Object message,
boolean sent)
throws RemotingException
Endpoint
send in interface Endpointsent - 是否已发送完成
RemotingExceptionpublic void close()
Endpoint
close in interface Endpointpublic boolean isClosed()
Endpoint
isClosed in interface Endpointpublic Collection<ExchangeChannel> getExchangeChannels()
ExchangeServer
getExchangeChannels in interface ExchangeServerpublic ExchangeChannel getExchangeChannel(InetSocketAddress remoteAddress)
ExchangeServer
getExchangeChannel in interface ExchangeServerpublic void close(int timeout)
Endpoint
close in interface Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||