public class NettyServer extends AbstractServer implements Server
| Constructor and Description |
|---|
NettyServer(URL url,
ChannelHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel(InetSocketAddress remoteAddress)
get channel.
|
Collection<Channel> |
getChannels()
get channels.
|
boolean |
isBound()
is bound.
|
close, close, connected, disconnected, getAccepts, getBindAddress, getIdleTimeout, getLocalAddress, reset, sendresetcaught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startCloseequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, send, startClosepublic NettyServer(URL url, ChannelHandler handler) throws RemotingException
RemotingExceptionpublic Collection<Channel> getChannels()
ServergetChannels in interface Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
ServergetChannel in interface ServerCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.