public class ExchangeServerDelegate extends Object implements ExchangeServer
| Constructor and Description |
|---|
ExchangeServerDelegate() |
ExchangeServerDelegate(ExchangeServer 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.
|
ExchangeServer |
getServer() |
URL |
getUrl()
get url.
|
boolean |
isBound()
is bound.
|
boolean |
isClosed()
is closed.
|
void |
reset(Parameters parameters)
Deprecated.
|
void |
reset(URL url) |
void |
send(Object message)
send message.
|
void |
send(Object message,
boolean sent)
send message.
|
void |
setServer(ExchangeServer server) |
void |
startClose() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandleIdlepublic ExchangeServerDelegate()
public ExchangeServerDelegate(ExchangeServer server)
public ExchangeServer getServer()
public void setServer(ExchangeServer server)
public boolean isBound()
Server@Deprecated public void reset(Parameters parameters)
public Collection<Channel> getChannels()
ServergetChannels in interface Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
ServergetChannel in interface Serverpublic ChannelHandler getChannelHandler()
EndpointgetChannelHandler in interface Endpointpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress in interface Endpointpublic 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?RemotingExceptionpublic void close()
Endpointpublic boolean isClosed()
Endpointpublic Collection<ExchangeChannel> getExchangeChannels()
ExchangeServergetExchangeChannels in interface ExchangeServerpublic ExchangeChannel getExchangeChannel(InetSocketAddress remoteAddress)
ExchangeServergetExchangeChannel in interface ExchangeServerpublic void close(int timeout)
Endpointpublic void startClose()
startClose in interface EndpointCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.