Class AbstractKQueueStreamChannel.KQueueStreamUnsafe
java.lang.Object
io.netty.channel.AbstractChannel.AbstractUnsafe
io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe
io.netty.channel.kqueue.AbstractKQueueStreamChannel.KQueueStreamUnsafe
- All Implemented Interfaces:
Channel.Unsafe, IoHandle, KQueueIoHandle, java.lang.AutoCloseable
- Direct Known Subclasses:
KQueueDomainSocketChannel.KQueueDomainUnsafe
- Enclosing class:
AbstractKQueueStreamChannel
class AbstractKQueueStreamChannel.KQueueStreamUnsafe
extends AbstractKQueueChannel.AbstractKQueueUnsafe
-
Field Summary
Fields inherited from class AbstractKQueueChannel.AbstractKQueueUnsafe
readPending -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidhandleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close, KQueueRecvByteAllocatorHandle allocHandle) protected java.util.concurrent.ExecutorPrepares to close theChannel.(package private) voidreadReady(KQueueRecvByteAllocatorHandle allocHandle) Methods inherited from class AbstractKQueueChannel.AbstractKQueueUnsafe
channel, clearReadFilter0, close, connect, failConnectPromise, flush0, handle, ident, recvBufAllocHandle, shouldStopReading, shutdownInputMethods inherited from class AbstractChannel.AbstractUnsafe
annotateConnectException, beginRead, bind, close, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, handleWriteError, localAddress, outboundBuffer, register, remoteAddress, safeSetFailure, safeSetSuccess, shutdownOutput, voidPromise, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IoHandle
registered, unregistered
-
Constructor Details
-
KQueueStreamUnsafe
KQueueStreamUnsafe()
-
-
Method Details
-
prepareToClose
protected java.util.concurrent.Executor 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
-
readReady
- Specified by:
readReadyin classAbstractKQueueChannel.AbstractKQueueUnsafe
-
handleReadException
private void handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close, KQueueRecvByteAllocatorHandle allocHandle)
-