public class NioServerBossPool extends AbstractNioBossPool<NioServerBoss>
NioServerBoss
instances to use构造器和说明 |
---|
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
|
限定符和类型 | 方法和说明 |
---|---|
protected NioServerBoss |
newBoss(java.util.concurrent.Executor executor)
Create a new
Boss which uses the given Executor to service IO |
init, nextBoss, rebuildSelectors, releaseExternalResources, shutdown
public NioServerBossPool(java.util.concurrent.Executor bossExecutor, int bossCount, ThreadNameDeterminer determiner)
bossExecutor
- the Executor
to use for server the NioServerBoss
bossCount
- 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)
ThreadNameDeterminer
bossExecutor
- the Executor
to use for server the NioServerBoss
bossCount
- the number of NioServerBoss
instances this NioServerBossPool
will holdprotected NioServerBoss newBoss(java.util.concurrent.Executor executor)
AbstractNioBossPool
Boss
which uses the given Executor
to service IOnewBoss
在类中 AbstractNioBossPool<NioServerBoss>
executor
- the Executor
to useBoss