public final class EpollSocketChannel
extends io.netty.channel.AbstractChannel
implements io.netty.channel.socket.SocketChannel
SocketChannel implementation that uses linux EPOLL Edge-Triggered Mode for
maximal performance.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected int |
flags |
| Constructor and Description |
|---|
EpollSocketChannel() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResolvable(InetSocketAddress addr) |
protected void |
clearEpollOut() |
EpollSocketChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress local) |
protected void |
doClose() |
protected void |
doDeregister() |
protected void |
doDisconnect() |
protected void |
doRegister() |
protected void |
doWrite(io.netty.channel.ChannelOutboundBuffer in) |
protected Object |
filterOutboundMessage(Object msg) |
boolean |
isActive() |
protected boolean |
isCompatible(io.netty.channel.EventLoop loop) |
boolean |
isInputShutdown() |
boolean |
isOpen() |
boolean |
isOutputShutdown() |
InetSocketAddress |
localAddress() |
protected SocketAddress |
localAddress0() |
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() |
io.netty.channel.socket.ServerSocketChannel |
parent() |
InetSocketAddress |
remoteAddress() |
protected SocketAddress |
remoteAddress0() |
protected void |
setEpollOut() |
io.netty.channel.ChannelFuture |
shutdownOutput() |
io.netty.channel.ChannelFuture |
shutdownOutput(io.netty.channel.ChannelPromise promise) |
alloc, bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, equals, eventLoop, flush, hashCode, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, 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, isActive, isOpen, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushcompareToprotected io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe newUnsafe()
protected SocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class io.netty.channel.AbstractChannelprotected void doBind(SocketAddress local) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionprotected void doWrite(io.netty.channel.ChannelOutboundBuffer in)
throws Exception
doWrite in class io.netty.channel.AbstractChannelExceptionprotected Object filterOutboundMessage(Object msg)
filterOutboundMessage in class io.netty.channel.AbstractChannelpublic EpollSocketChannelConfig config()
config in interface io.netty.channel.Channelconfig in interface io.netty.channel.socket.SocketChannelpublic boolean isInputShutdown()
isInputShutdown in interface io.netty.channel.socket.SocketChannelpublic boolean isOutputShutdown()
isOutputShutdown in interface io.netty.channel.socket.SocketChannelpublic io.netty.channel.ChannelFuture shutdownOutput()
shutdownOutput in interface io.netty.channel.socket.SocketChannelpublic io.netty.channel.ChannelFuture shutdownOutput(io.netty.channel.ChannelPromise promise)
shutdownOutput in interface io.netty.channel.socket.SocketChannelpublic io.netty.channel.socket.ServerSocketChannel parent()
parent in interface io.netty.channel.Channelparent in interface io.netty.channel.socket.SocketChannelparent in class io.netty.channel.AbstractChannelpublic boolean isActive()
public io.netty.channel.ChannelMetadata metadata()
protected void doClose()
throws Exception
doClose in class io.netty.channel.AbstractChannelExceptionpublic InetSocketAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in class io.netty.channel.AbstractChannelpublic InetSocketAddress localAddress()
localAddress in interface io.netty.channel.ChannellocalAddress in class io.netty.channel.AbstractChannelprotected void doDisconnect()
throws Exception
doDisconnect in class io.netty.channel.AbstractChannelExceptionprotected boolean isCompatible(io.netty.channel.EventLoop loop)
isCompatible in class io.netty.channel.AbstractChannelpublic boolean isOpen()
protected void doDeregister()
throws Exception
doDeregister in class io.netty.channel.AbstractChannelExceptionprotected void doBeginRead()
throws Exception
doBeginRead in class io.netty.channel.AbstractChannelExceptionprotected final void setEpollOut()
protected final void clearEpollOut()
protected void doRegister()
throws Exception
doRegister in class io.netty.channel.AbstractChannelExceptionprotected 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)
Copyright © 2008–2014 The Netty Project. All rights reserved.