public final class WrappingXnioServerSocketChannel
extends io.netty.channel.AbstractServerChannel
AbstractXnioServerSocketChannel implementation which allows to use a AcceptingChannel and wrap it.| Constructor and Description |
|---|
WrappingXnioServerSocketChannel(org.xnio.channels.AcceptingChannel channel)
Create a new instance wrapping the given
AcceptingChannel |
| Modifier and Type | Method and Description |
|---|---|
org.xnio.netty.transport.XnioServerSocketChannelConfigImpl |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected <T> T |
getOption0(org.xnio.Option<T> option)
Return the value for the given
Option. |
org.xnio.XnioIoThread |
ioThread() |
boolean |
isActive() |
protected boolean |
isCompatible(io.netty.channel.EventLoop loop) |
boolean |
isOpen() |
InetSocketAddress |
localAddress() |
protected SocketAddress |
localAddress0() |
InetSocketAddress |
remoteAddress() |
protected <T> void |
setOption0(org.xnio.Option<T> option,
T value)
Set the given
Option to the given value. |
protected org.xnio.channels.AcceptingChannel |
xnioChannel()
Return the underyling
AcceptingChannel |
doDisconnect, doWrite, filterOutboundMessage, metadata, newUnsafe, remoteAddress0alloc, bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doDeregister, doRegister, equals, eventLoop, flush, hashCode, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitalloc, bind, bind, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushcompareTopublic WrappingXnioServerSocketChannel(org.xnio.channels.AcceptingChannel channel)
AcceptingChannelpublic org.xnio.XnioIoThread ioThread()
protected <T> void setOption0(org.xnio.Option<T> option,
T value)
throws IOException
Option to the given value.IOExceptionprotected <T> T getOption0(org.xnio.Option<T> option)
throws IOException
Option.IOExceptionprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionprotected org.xnio.channels.AcceptingChannel xnioChannel()
AcceptingChannelprotected boolean isCompatible(io.netty.channel.EventLoop loop)
isCompatible in class io.netty.channel.AbstractChannelpublic boolean isActive()
isActive in interface io.netty.channel.Channelpublic InetSocketAddress localAddress()
localAddress in interface io.netty.channel.ChannellocalAddress in interface io.netty.channel.socket.ServerSocketChannellocalAddress in class io.netty.channel.AbstractChannelpublic InetSocketAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in interface io.netty.channel.socket.ServerSocketChannelremoteAddress in class io.netty.channel.AbstractServerChannelpublic org.xnio.netty.transport.XnioServerSocketChannelConfigImpl config()
config in interface io.netty.channel.Channelconfig in interface io.netty.channel.socket.ServerSocketChannelprotected SocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelprotected void doClose()
throws Exception
doClose in class io.netty.channel.AbstractChannelExceptionprotected void doBeginRead()
throws Exception
doBeginRead in class io.netty.channel.AbstractChannelExceptionpublic boolean isOpen()
isOpen in interface io.netty.channel.ChannelCopyright © 2013–2016 JBoss, a division of Red Hat. All rights reserved.