Class NioServerBoss
java.lang.Object
org.jboss.netty.channel.socket.nio.AbstractNioSelector
org.jboss.netty.channel.socket.nio.NioServerBoss
- All Implemented Interfaces:
Runnable,Boss,NioSelector
Boss implementation which handles accepting of new connections
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.jboss.netty.channel.socket.nio.AbstractNioSelector
logger, selector, startupLatch, thread, wakenUp -
Constructor Summary
ConstructorsConstructorDescriptionNioServerBoss(Executor bossExecutor) NioServerBoss(Executor bossExecutor, ThreadNameDeterminer determiner) -
Method Summary
Modifier and TypeMethodDescription(package private) voidbind(NioServerSocketChannel channel, ChannelFuture future, SocketAddress localAddress) protected void(package private) voidclose(NioServerSocketChannel channel, ChannelFuture future) protected RunnablecreateRegisterTask(Channel channel, ChannelFuture future) protected ThreadRenamingRunnablenewThreadRenamingRunnable(int id, ThreadNameDeterminer determiner) protected voidprivate static voidregisterAcceptedChannel(NioServerSocketChannel parent, SocketChannel acceptedSocket, Thread currentThread) protected intMethods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioSelector
cleanUpCancelledKeys, increaseCancelledKeys, isIoThread, rebuildSelector, register, registerTask, run, 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
-
Constructor Details
-
NioServerBoss
NioServerBoss(Executor bossExecutor) -
NioServerBoss
NioServerBoss(Executor bossExecutor, ThreadNameDeterminer determiner)
-
-
Method Details
-
bind
-
close
- Specified by:
closein classAbstractNioSelector
-
close
-
process
- Specified by:
processin classAbstractNioSelector
-
registerAcceptedChannel
private static void registerAcceptedChannel(NioServerSocketChannel parent, SocketChannel acceptedSocket, Thread currentThread) -
select
- Overrides:
selectin classAbstractNioSelector- Throws:
IOException
-
newThreadRenamingRunnable
- Specified by:
newThreadRenamingRunnablein classAbstractNioSelector
-
createRegisterTask
- Specified by:
createRegisterTaskin classAbstractNioSelector
-