public class NioClientBossPool extends AbstractNioBossPool<NioClientBoss>
NioClientBoss
instances to useConstructor and Description |
---|
NioClientBossPool(Executor bossExecutor,
int bossCount)
Create a new instance using a new
HashedWheelTimer and no ThreadNameDeterminer |
NioClientBossPool(Executor bossExecutor,
int bossCount,
Timer timer,
ThreadNameDeterminer determiner)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
protected NioClientBoss |
newBoss(Executor executor)
|
void |
releaseExternalResources()
Releases the external resources that this object depends on.
|
void |
shutdown()
Shutdown the
NioSelectorPool and all internal created resources |
init, nextBoss, rebuildSelectors
public NioClientBossPool(Executor bossExecutor, int bossCount, Timer timer, ThreadNameDeterminer determiner)
bossExecutor
- the Executor to use for server the NioClientBoss
bossCount
- the number of NioClientBoss
instances this NioClientBossPool
will holdtimer
- the Timer to use for handle connect timeoutsdeterminer
- the ThreadNameDeterminer
to use for name the threads. Use null
if you not want to set one explicit.public NioClientBossPool(Executor bossExecutor, int bossCount)
HashedWheelTimer
and no ThreadNameDeterminer
bossExecutor
- the Executor to use for server the NioClientBoss
bossCount
- the number of NioClientBoss
instances this NioClientBoss
will holdprotected NioClientBoss newBoss(Executor executor)
AbstractNioBossPool
newBoss
in class AbstractNioBossPool<NioClientBoss>
executor
- the Executor
to useBoss
public void shutdown()
NioSelectorPool
NioSelectorPool
and all internal created resourcesshutdown
in interface NioSelectorPool
shutdown
in class AbstractNioBossPool<NioClientBoss>
public void releaseExternalResources()
ExternalResourceReleasable
releaseExternalResources
in interface ExternalResourceReleasable
releaseExternalResources
in class AbstractNioBossPool<NioClientBoss>
Copyright © 2008-2014 The Netty Project. All Rights Reserved.