Class NioSocketChannel.NioSocketChannelUnsafe
java.lang.Object
io.netty.channel.AbstractChannel.AbstractUnsafe
io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe
io.netty.channel.nio.AbstractNioByteChannel.NioByteUnsafe
io.netty.channel.socket.nio.NioSocketChannel.NioSocketChannelUnsafe
- All Implemented Interfaces:
Channel.Unsafe, IoHandle, AbstractNioChannel.NioUnsafe, NioIoHandle, java.lang.AutoCloseable
- Enclosing class:
NioSocketChannel
private final class NioSocketChannel.NioSocketChannelUnsafe
extends AbstractNioByteChannel.NioByteUnsafe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected java.util.concurrent.ExecutorPrepares to close theChannel.Methods inherited from class AbstractNioByteChannel.NioByteUnsafe
readMethods inherited from class AbstractNioChannel.AbstractNioUnsafe
ch, close, connect, finishConnect, flush0, forceFlush, handle, removeReadOp, selectableChannelMethods inherited from class AbstractChannel.AbstractUnsafe
annotateConnectException, beginRead, bind, close, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, handleWriteError, localAddress, outboundBuffer, recvBufAllocHandle, 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 Channel.Unsafe
beginRead, bind, close, closeForcibly, deregister, disconnect, flush, localAddress, outboundBuffer, recvBufAllocHandle, register, remoteAddress, voidPromise, writeMethods inherited from interface IoHandle
registered, unregistered
-
Constructor Details
-
NioSocketChannelUnsafe
private NioSocketChannelUnsafe()
-
-
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
-