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 noThreadNameDeterminerNioServerBossPool(Executor bossExecutor, int bossCount, ThreadNameDeterminer determiner) Create a new instance -
Method Summary
Methods inherited from class AbstractNioBossPool
init, nextBoss, rebuildSelectors, releaseExternalResources, shutdown
-
Field Details
-
determiner
-
-
Constructor Details
-
NioServerBossPool
Create a new instance- Parameters:
bossExecutor- theExecutorto use for server theNioServerBossbossCount- the number ofNioServerBossinstances thisNioServerBossPoolwill holddeterminer- theThreadNameDeterminerto use for name the threads. Usenullif you not want to set one explicit.
-
NioServerBossPool
Create a new instance using noThreadNameDeterminer- Parameters:
bossExecutor- theExecutorto use for server theNioServerBossbossCount- the number ofNioServerBossinstances thisNioServerBossPoolwill hold
-
-
Method Details
-
newBoss
Description copied from class:AbstractNioBossPool- Specified by:
newBossin classAbstractNioBossPool<NioServerBoss>- Parameters:
executor- theExecutorto use- Returns:
- worker the new
Boss
-