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