public class NioWorker extends AbstractNioWorker
| Modifier and Type | Class and Description |
|---|---|
private class |
NioWorker.RegisterTask |
| Modifier and Type | Field and Description |
|---|---|
private SocketReceiveBufferAllocator |
recvBufferPool |
sendBufferPoollogger, selector, startupLatch, thread, wakenUp| Constructor and Description |
|---|
NioWorker(java.util.concurrent.Executor executor) |
NioWorker(java.util.concurrent.Executor executor,
ThreadNameDeterminer determiner) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Runnable |
createRegisterTask(Channel channel,
ChannelFuture future) |
protected boolean |
read(java.nio.channels.SelectionKey k)
Read is called when a Selector has been notified that the underlying channel
was something to be read.
|
void |
run() |
protected boolean |
scheduleWriteIfNecessary(AbstractNioChannel<?> channel) |
cleanUpWriteBuffer, clearOpWrite, close, close, executeInIoThread, executeInIoThread, isIoThread, newThreadRenamingRunnable, process, setInterestOps, setOpWrite, write0, writeFromSelectorLoop, writeFromTaskLoop, writeFromUserCodecleanUpCancelledKeys, increaseCancelledKeys, isIoThread, rebuildSelector, register, registerTask, select, shutdownprivate final SocketReceiveBufferAllocator recvBufferPool
public NioWorker(java.util.concurrent.Executor executor)
public NioWorker(java.util.concurrent.Executor executor,
ThreadNameDeterminer determiner)
protected boolean read(java.nio.channels.SelectionKey k)
AbstractNioWorkerread in class AbstractNioWorkerk - The selection key which contains the Selector registration information.protected boolean scheduleWriteIfNecessary(AbstractNioChannel<?> channel)
scheduleWriteIfNecessary in class AbstractNioWorkerprotected java.lang.Runnable createRegisterTask(Channel channel, ChannelFuture future)
createRegisterTask in class AbstractNioSelectorpublic void run()
run in interface java.lang.Runnablerun in class AbstractNioWorker