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 Modifier Constructor Description private
NioSocketChannelUnsafe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.concurrent.Executor
prepareToClose()
Prepares to close theChannel
.-
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, 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
-
-
-
-
Method Detail
-
prepareToClose
protected java.util.concurrent.Executor 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
-
-