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, shutdownpublic 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 在类中 AbstractNioBossPool<NioServerBoss>executor - the Executor to useBoss