public class NioServerBossPool extends AbstractNioBossPool<NioServerBoss>
NioServerBoss instances to use| Modifier and Type | Field and Description |
|---|---|
private ThreadNameDeterminer |
determiner |
| Constructor and Description |
|---|
NioServerBossPool(java.util.concurrent.Executor bossExecutor,
int bossCount)
Create a new instance using no
ThreadNameDeterminer |
NioServerBossPool(java.util.concurrent.Executor bossExecutor,
int bossCount,
ThreadNameDeterminer determiner)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected NioServerBoss |
newBoss(java.util.concurrent.Executor executor)
Create a new
Boss which uses the given Executor to service IO |
init, nextBoss, rebuildSelectors, releaseExternalResources, shutdownprivate final ThreadNameDeterminer determiner
public NioServerBossPool(java.util.concurrent.Executor bossExecutor,
int bossCount,
ThreadNameDeterminer determiner)
bossExecutor - the Executor to use for server the NioServerBossbossCount - the number of NioServerBoss instances this NioServerBossPool will holddeterminer - the ThreadNameDeterminer to use for name the threads. Use null
if you not want to set one explicit.public NioServerBossPool(java.util.concurrent.Executor bossExecutor,
int bossCount)
ThreadNameDeterminerbossExecutor - the Executor to use for server the NioServerBossbossCount - the number of NioServerBoss instances this NioServerBossPool will holdprotected NioServerBoss newBoss(java.util.concurrent.Executor executor)
AbstractNioBossPoolBoss which uses the given Executor to service IOnewBoss in class AbstractNioBossPool<NioServerBoss>executor - the Executor to useBoss