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 voidprivate static voidprotected RunnablecreateRegisterTask(Channel channel, ChannelFuture future) protected ThreadRenamingRunnablenewThreadRenamingRunnable(int id, ThreadNameDeterminer determiner) protected voidprivate static voidprocessConnectTimeout(Set<SelectionKey> keys, long currentTimeNanos) private voidprocessSelectedKeys(Set<SelectionKey> selectedKeys) Methods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioSelector
cleanUpCancelledKeys, increaseCancelledKeys, isIoThread, rebuildSelector, register, registerTask, run, select, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
newThreadRenamingRunnablein classAbstractNioSelector
-
createRegisterTask
- Specified by:
createRegisterTaskin classAbstractNioSelector
-
process
- Specified by:
processin classAbstractNioSelector
-
processSelectedKeys
-
processConnectTimeout
-
connect
- Throws:
IOException
-
close
- Specified by:
closein classAbstractNioSelector
-