Package io.netty.channel.epoll
Class AbstractEpollStreamChannel.EpollStreamUnsafe
java.lang.Object
io.netty.channel.AbstractChannel.AbstractUnsafe
io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe
io.netty.channel.epoll.AbstractEpollStreamChannel.EpollStreamUnsafe
- All Implemented Interfaces:
Channel.Unsafe
- Direct Known Subclasses:
EpollDomainSocketChannel.EpollDomainUnsafe,EpollSocketChannel.EpollSocketChannelUnsafe
- Enclosing class:
AbstractEpollStreamChannel
-
Field Summary
Fields inherited from class io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe
maybeMoreDataToRead, readPending -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidCalled once EPOLLIN event is ready to be processedprivate voidhandleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause, boolean close, EpollRecvByteAllocatorHandle allocHandle) (package private) EpollRecvByteAllocatorHandleCreate a newEpollRecvByteAllocatorHandleinstance.protected ExecutorPrepares to close theChannel.Methods inherited from class io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe
clearEpollIn0, connect, epollInBefore, epollInFinally, epollOutReady, epollRdHupReady, executeEpollInReadyRunnable, flush0, recvBufAllocHandle, shutdownInputMethods inherited from class io.netty.channel.AbstractChannel.AbstractUnsafe
annotateConnectException, beginRead, bind, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, handleWriteError, localAddress, outboundBuffer, register, remoteAddress, safeSetFailure, safeSetSuccess, shutdownOutput, voidPromise, write
-
Constructor Details
-
EpollStreamUnsafe
EpollStreamUnsafe()
-
-
Method Details
-
prepareToClose
Description copied from class:AbstractChannel.AbstractUnsafePrepares to close theChannel. If this method returns anExecutor, the caller must call theExecutor.execute(Runnable)method with a task that callsAbstractChannel.doClose()on the returnedExecutor. If this method returnsnull,AbstractChannel.doClose()must be called from the caller thread. (i.e.EventLoop)- Overrides:
prepareToClosein classAbstractChannel.AbstractUnsafe
-
handleReadException
private void handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause, boolean close, EpollRecvByteAllocatorHandle allocHandle) -
newEpollHandle
Description copied from class:AbstractEpollChannel.AbstractEpollUnsafeCreate a newEpollRecvByteAllocatorHandleinstance.- Overrides:
newEpollHandlein classAbstractEpollChannel.AbstractEpollUnsafe- Parameters:
handle- The handle to wrap with EPOLL specific logic.
-
epollInReady
void epollInReady()Description copied from class:AbstractEpollChannel.AbstractEpollUnsafeCalled once EPOLLIN event is ready to be processed- Specified by:
epollInReadyin classAbstractEpollChannel.AbstractEpollUnsafe
-