Class NioClientBoss
java.lang.Object
org.jboss.netty.channel.socket.nio.AbstractNioSelector
org.jboss.netty.channel.socket.nio.NioClientBoss
- All Implemented Interfaces:
Runnable
,Boss
,NioSelector
Boss
implementation that handles the connection attempts of clients-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jboss.netty.channel.socket.nio.AbstractNioSelector
logger, selector, startupLatch, thread, wakenUp
-
Constructor Summary
ConstructorsConstructorDescriptionNioClientBoss
(Executor bossExecutor, Timer timer, ThreadNameDeterminer determiner) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
private static void
protected Runnable
createRegisterTask
(Channel channel, ChannelFuture future) protected ThreadRenamingRunnable
newThreadRenamingRunnable
(int id, ThreadNameDeterminer determiner) protected void
private static void
processConnectTimeout
(Set<SelectionKey> keys, long currentTimeNanos) private void
processSelectedKeys
(Set<SelectionKey> selectedKeys) Methods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioSelector
cleanUpCancelledKeys, increaseCancelledKeys, isIoThread, rebuildSelector, register, registerTask, run, select, shutdown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.netty.channel.socket.nio.NioSelector
rebuildSelector, register, shutdown
-
Field Details
-
wakeupTask
-
timer
-
-
Constructor Details
-
NioClientBoss
NioClientBoss(Executor bossExecutor, Timer timer, ThreadNameDeterminer determiner)
-
-
Method Details
-
newThreadRenamingRunnable
- Specified by:
newThreadRenamingRunnable
in classAbstractNioSelector
-
createRegisterTask
- Specified by:
createRegisterTask
in classAbstractNioSelector
-
process
- Specified by:
process
in classAbstractNioSelector
-
processSelectedKeys
-
processConnectTimeout
-
connect
- Throws:
IOException
-
close
- Specified by:
close
in classAbstractNioSelector
-