public abstract class AbstractEpollServerChannel
extends io.netty.channel.AbstractChannel
implements io.netty.channel.ServerChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected int |
flags |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEpollServerChannel(FileDescriptor fd) |
protected |
AbstractEpollServerChannel(int fd) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResolvable(InetSocketAddress addr) |
abstract EpollChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doClose() |
protected void |
doDeregister() |
protected void |
doDisconnect() |
protected int |
doReadBytes(io.netty.buffer.ByteBuf byteBuf)
Read bytes into the given
ByteBuf and return the amount. |
protected void |
doRegister() |
protected void |
doWrite(io.netty.channel.ChannelOutboundBuffer in) |
protected int |
doWriteBytes(io.netty.buffer.ByteBuf buf,
int writeSpinCount) |
FileDescriptor |
fd()
Returns the
FileDescriptor that is used by this Channel. |
protected Object |
filterOutboundMessage(Object msg) |
boolean |
isActive() |
protected boolean |
isCompatible(io.netty.channel.EventLoop loop) |
protected boolean |
isInputShutdown0() |
boolean |
isOpen() |
io.netty.channel.ChannelMetadata |
metadata() |
protected io.netty.buffer.ByteBuf |
newDirectBuffer(io.netty.buffer.ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf, and releases the original one. |
protected io.netty.buffer.ByteBuf |
newDirectBuffer(Object holder,
io.netty.buffer.ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf, and releases the specified holder. |
protected io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe |
newUnsafe() |
protected InetSocketAddress |
remoteAddress0() |
protected void |
shutdown(int fd)
Called on
doClose() before the actual FileDescriptor is closed. |
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doBind, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, localAddress0, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitalloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, config, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, localAddress, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushcompareToprotected AbstractEpollServerChannel(int fd)
protected AbstractEpollServerChannel(FileDescriptor fd)
public io.netty.channel.ChannelMetadata metadata()
metadata in interface io.netty.channel.Channelprotected boolean isCompatible(io.netty.channel.EventLoop loop)
protected InetSocketAddress remoteAddress0()
remoteAddress0 in class io.netty.channel.AbstractChannelprotected io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe newUnsafe()
protected void doWrite(io.netty.channel.ChannelOutboundBuffer in)
throws Exception
doWrite in class io.netty.channel.AbstractChannelExceptionprotected Object filterOutboundMessage(Object msg) throws Exception
filterOutboundMessage in class io.netty.channel.AbstractChannelExceptionpublic final FileDescriptor fd()
UnixChannelFileDescriptor that is used by this Channel.fd in interface UnixChannelpublic abstract EpollChannelConfig config()
config in interface io.netty.channel.Channelpublic boolean isActive()
isActive in interface io.netty.channel.Channelprotected void doClose()
throws Exception
doClose in class io.netty.channel.AbstractChannelExceptionprotected void shutdown(int fd)
throws IOException
doClose() before the actual FileDescriptor is closed.
This implementation does nothing.IOExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class io.netty.channel.AbstractChannelExceptionpublic boolean isOpen()
isOpen in interface io.netty.channel.Channelprotected void doDeregister()
throws Exception
doDeregister in class io.netty.channel.AbstractChannelExceptionprotected void doBeginRead()
throws Exception
doBeginRead in class io.netty.channel.AbstractChannelExceptionprotected void doRegister()
throws Exception
doRegister in class io.netty.channel.AbstractChannelExceptionprotected final boolean isInputShutdown0()
protected final io.netty.buffer.ByteBuf newDirectBuffer(io.netty.buffer.ByteBuf buf)
ByteBuf, and releases the original one.protected final io.netty.buffer.ByteBuf newDirectBuffer(Object holder, io.netty.buffer.ByteBuf buf)
ByteBuf, and releases the specified holder.
The caller must ensure that the holder releases the original ByteBuf when the holder is released by
this method.protected static void checkResolvable(InetSocketAddress addr)
protected final int doReadBytes(io.netty.buffer.ByteBuf byteBuf)
throws Exception
ByteBuf and return the amount.ExceptionCopyright © 2008–2015 The Netty Project. All rights reserved.