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
-
-
Field Summary
Fields Modifier and Type Field Description private ThreadNameDeterminerdeterminer
-
Constructor Summary
Constructors Constructor Description NioServerBossPool(java.util.concurrent.Executor bossExecutor, int bossCount)Create a new instance using noThreadNameDeterminerNioServerBossPool(java.util.concurrent.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(java.util.concurrent.Executor executor)Create a newBosswhich uses the givenExecutorto service IO-
Methods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioBossPool
init, nextBoss, rebuildSelectors, releaseExternalResources, shutdown
-
-
-
-
Field Detail
-
determiner
private final ThreadNameDeterminer determiner
-
-
Constructor Detail
-
NioServerBossPool
public NioServerBossPool(java.util.concurrent.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(java.util.concurrent.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(java.util.concurrent.Executor executor)
Description copied from class:AbstractNioBossPoolCreate a newBosswhich uses the givenExecutorto service IO- Specified by:
newBossin classAbstractNioBossPool<NioServerBoss>- Parameters:
executor- theExecutorto use- Returns:
- worker the new
Boss
-
-