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>
HoldsNioServerBoss
instances to use
-
-
Field Summary
Fields Modifier and Type Field Description private ThreadNameDeterminer
determiner
-
Constructor Summary
Constructors Constructor Description NioServerBossPool(java.util.concurrent.Executor bossExecutor, int bossCount)
Create a new instance using noThreadNameDeterminer
NioServerBossPool(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 NioServerBoss
newBoss(java.util.concurrent.Executor executor)
Create a newBoss
which uses the givenExecutor
to 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
- 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
public NioServerBossPool(java.util.concurrent.Executor bossExecutor, int bossCount)
Create a new instance using noThreadNameDeterminer
- Parameters:
bossExecutor
- theExecutor
to use for server theNioServerBoss
bossCount
- the number ofNioServerBoss
instances thisNioServerBossPool
will hold
-
-
Method Detail
-
newBoss
protected NioServerBoss newBoss(java.util.concurrent.Executor executor)
Description copied from class:AbstractNioBossPool
Create a newBoss
which uses the givenExecutor
to service IO- Specified by:
newBoss
in classAbstractNioBossPool<NioServerBoss>
- Parameters:
executor
- theExecutor
to use- Returns:
- worker the new
Boss
-
-