Class NioServerBossPool
java.lang.Object
org.jboss.netty.channel.socket.nio.AbstractNioBossPool<NioServerBoss>
org.jboss.netty.channel.socket.nio.NioServerBossPool
- All Implemented Interfaces:
BossPool<NioServerBoss>
,NioSelectorPool
,ExternalResourceReleasable
Holds
NioServerBoss
instances to use-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNioServerBossPool
(Executor bossExecutor, int bossCount) Create a new instance using noThreadNameDeterminer
NioServerBossPool
(Executor bossExecutor, int bossCount, ThreadNameDeterminer determiner) Create a new instance -
Method Summary
Methods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioBossPool
init, nextBoss, rebuildSelectors, releaseExternalResources, shutdown
-
Field Details
-
determiner
-
-
Constructor Details
-
NioServerBossPool
Create a new instance- Parameters:
bossExecutor
- theExecutor
to use for server theNioServerBoss
bossCount
- the number ofNioServerBoss
instances thisNioServerBossPool
will holddeterminer
- theThreadNameDeterminer
to use for name the threads. Usenull
if you not want to set one explicit.
-
NioServerBossPool
Create a new instance using noThreadNameDeterminer
- Parameters:
bossExecutor
- theExecutor
to use for server theNioServerBoss
bossCount
- the number ofNioServerBoss
instances thisNioServerBossPool
will hold
-
-
Method Details
-
newBoss
Description copied from class:AbstractNioBossPool
- Specified by:
newBoss
in classAbstractNioBossPool<NioServerBoss>
- Parameters:
executor
- theExecutor
to use- Returns:
- worker the new
Boss
-