public final class EpollServerDomainSocketChannel extends AbstractEpollServerChannel implements ServerDomainSocketChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected int |
flags |
| Constructor and Description |
|---|
EpollServerDomainSocketChannel() |
EpollServerDomainSocketChannel(FileDescriptor fd)
Creates a new
EpollServerDomainSocketChannel from an existing FileDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResolvable(InetSocketAddress addr) |
EpollServerChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress localAddress) |
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 int |
doWriteBytes(io.netty.buffer.ByteBuf buf,
int writeSpinCount) |
FileDescriptor |
fd()
Returns the
FileDescriptor that is used by this Channel. |
boolean |
isActive() |
protected boolean |
isInputShutdown0() |
boolean |
isOpen() |
DomainSocketAddress |
localAddress() |
protected DomainSocketAddress |
localAddress0() |
protected io.netty.channel.Channel |
newChildChannel(int fd,
byte[] addr,
int offset,
int len) |
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. |
DomainSocketAddress |
remoteAddress() |
protected void |
shutdown(int fd)
Called on
doClose() before the actual FileDescriptor is closed. |
doWrite, filterOutboundMessage, isCompatible, metadata, newUnsafe, remoteAddress0alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitfdalloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushcompareTopublic EpollServerDomainSocketChannel()
public EpollServerDomainSocketChannel(FileDescriptor fd)
EpollServerDomainSocketChannel from an existing FileDescriptor.protected io.netty.channel.Channel newChildChannel(int fd,
byte[] addr,
int offset,
int len)
throws Exception
Exceptionprotected DomainSocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionpublic EpollServerChannelConfig config()
config in interface io.netty.channel.Channelpublic DomainSocketAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in interface ServerDomainSocketChannelremoteAddress in class io.netty.channel.AbstractChannelpublic DomainSocketAddress localAddress()
localAddress in interface io.netty.channel.ChannellocalAddress in interface ServerDomainSocketChannellocalAddress in class io.netty.channel.AbstractChannelpublic final FileDescriptor fd()
UnixChannelFileDescriptor that is used by this Channel.fd in interface UnixChannelpublic boolean isActive()
isActive in interface io.netty.channel.Channelprotected 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.