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
public class NioServerBossPool extends AbstractNioBossPool<NioServerBoss>
HoldsNioServerBossinstances to use
-
-
Constructor Summary
Constructors Constructor Description NioServerBossPool(Executor bossExecutor, int bossCount)Create a new instance using noThreadNameDeterminerNioServerBossPool(Executor bossExecutor, int bossCount, ThreadNameDeterminer determiner)Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NioServerBossnewBoss(Executor executor)-
Methods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioBossPool
init, nextBoss, rebuildSelectors, releaseExternalResources, shutdown
-
-
-
-
Constructor Detail
-
NioServerBossPool
public NioServerBossPool(Executor bossExecutor, int bossCount, ThreadNameDeterminer determiner)
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
public NioServerBossPool(Executor bossExecutor, int bossCount)
Create a new instance using noThreadNameDeterminer- Parameters:
bossExecutor- theExecutorto use for server theNioServerBossbossCount- the number ofNioServerBossinstances thisNioServerBossPoolwill hold
-
-
Method Detail
-
newBoss
protected NioServerBoss newBoss(Executor executor)
Description copied from class:AbstractNioBossPool- Specified by:
newBossin classAbstractNioBossPool<NioServerBoss>- Parameters:
executor- theExecutorto use- Returns:
- worker the new
Boss
-
-