public final class NioClientBoss extends AbstractNioSelector implements Boss
Boss implementation that handles the connection attempts of clients| Modifier and Type | Class and Description |
|---|---|
private class |
NioClientBoss.RegisterTask |
| Modifier and Type | Field and Description |
|---|---|
private Timer |
timer |
private TimerTask |
wakeupTask |
logger, selector, startupLatch, thread, wakenUp| Constructor and Description |
|---|
NioClientBoss(java.util.concurrent.Executor bossExecutor,
Timer timer,
ThreadNameDeterminer determiner) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(java.nio.channels.SelectionKey k) |
private static void |
connect(java.nio.channels.SelectionKey k) |
protected java.lang.Runnable |
createRegisterTask(Channel channel,
ChannelFuture future) |
protected ThreadRenamingRunnable |
newThreadRenamingRunnable(int id,
ThreadNameDeterminer determiner) |
protected void |
process(java.nio.channels.Selector selector) |
private static void |
processConnectTimeout(java.util.Set<java.nio.channels.SelectionKey> keys,
long currentTimeNanos) |
private void |
processSelectedKeys(java.util.Set<java.nio.channels.SelectionKey> selectedKeys) |
cleanUpCancelledKeys, increaseCancelledKeys, isIoThread, rebuildSelector, register, registerTask, run, select, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrebuildSelector, register, shutdownNioClientBoss(java.util.concurrent.Executor bossExecutor,
Timer timer,
ThreadNameDeterminer determiner)
protected ThreadRenamingRunnable newThreadRenamingRunnable(int id, ThreadNameDeterminer determiner)
newThreadRenamingRunnable in class AbstractNioSelectorprotected java.lang.Runnable createRegisterTask(Channel channel, ChannelFuture future)
createRegisterTask in class AbstractNioSelectorprotected void process(java.nio.channels.Selector selector)
process in class AbstractNioSelectorprivate void processSelectedKeys(java.util.Set<java.nio.channels.SelectionKey> selectedKeys)
private static void processConnectTimeout(java.util.Set<java.nio.channels.SelectionKey> keys,
long currentTimeNanos)
private static void connect(java.nio.channels.SelectionKey k)
throws java.io.IOException
java.io.IOExceptionprotected void close(java.nio.channels.SelectionKey k)
close in class AbstractNioSelector