public class HeaderExchangeServer extends Object implements ExchangeServer
| Constructor and Description |
|---|
HeaderExchangeServer(Server server) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
startClose() |
public HeaderExchangeServer(Server server)
public Server getServer()
public boolean isClosed()
Endpointpublic void close()
Endpointpublic void close(int timeout)
Endpointpublic void startClose()
startClose in interface Endpointpublic Collection<ExchangeChannel> getExchangeChannels()
ExchangeServergetExchangeChannels in interface ExchangeServerpublic ExchangeChannel getExchangeChannel(InetSocketAddress remoteAddress)
ExchangeServergetExchangeChannel in interface ExchangeServerpublic Collection<Channel> getChannels()
ServergetChannels in interface Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
ServergetChannel in interface Serverpublic boolean isBound()
Serverpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress in interface Endpointpublic ChannelHandler getChannelHandler()
EndpointgetChannelHandler in interface Endpoint@Deprecated public void reset(Parameters parameters)
public void send(Object message) throws RemotingException
Endpointsend in interface EndpointRemotingExceptionpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend in interface Endpointsent - already sent to socket?RemotingExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.