Package io.netty.channel.socket.nio
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
,AbstractNioChannel.NioUnsafe
- Enclosing class:
NioSocketChannel
private final class NioSocketChannel.NioSocketChannelUnsafe
extends AbstractNioByteChannel.NioByteUnsafe
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.netty.channel.nio.AbstractNioByteChannel.NioByteUnsafe
read
Methods inherited from class io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe
ch, connect, finishConnect, flush0, forceFlush, removeReadOp
Methods inherited from class io.netty.channel.AbstractChannel.AbstractUnsafe
annotateConnectException, beginRead, bind, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, handleWriteError, localAddress, outboundBuffer, recvBufAllocHandle, register, remoteAddress, safeSetFailure, safeSetSuccess, shutdownOutput, voidPromise, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.Channel.Unsafe
beginRead, bind, close, closeForcibly, deregister, disconnect, flush, localAddress, outboundBuffer, recvBufAllocHandle, register, remoteAddress, voidPromise, write
-
Constructor Details
-
NioSocketChannelUnsafe
private NioSocketChannelUnsafe()
-
-
Method Details
-
prepareToClose
Description copied from class:AbstractChannel.AbstractUnsafe
Prepares 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:
prepareToClose
in classAbstractChannel.AbstractUnsafe
-