Class AbstractNioBossPool<E extends Boss>
- java.lang.Object
-
- org.jboss.netty.channel.socket.nio.AbstractNioBossPool<E>
-
- All Implemented Interfaces:
BossPool<E>,NioSelectorPool,ExternalResourceReleasable
- Direct Known Subclasses:
NioClientBossPool,NioServerBossPool
public abstract class AbstractNioBossPool<E extends Boss> extends Object implements BossPool<E>, ExternalResourceReleasable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidinit()protected abstract EnewBoss(Executor executor)EnextBoss()Return the nextBossto usevoidrebuildSelectors()voidreleaseExternalResources()Releases the external resources that this object depends on.voidshutdown()Shutdown theNioSelectorPooland all internal created resources
-
-
-
Method Detail
-
init
protected void init()
-
nextBoss
public E nextBoss()
Description copied from interface:BossPoolReturn the nextBossto use
-
rebuildSelectors
public void rebuildSelectors()
Description copied from interface:NioSelectorPoolReplaces the currentSelectors of theBosses with newSelectors to work around the infamous epoll 100% CPU bug.- Specified by:
rebuildSelectorsin interfaceNioSelectorPool
-
releaseExternalResources
public void releaseExternalResources()
Description copied from interface:ExternalResourceReleasableReleases the external resources that this object depends on. You should not call this method if the external resources (e.g. thread pool) are in use by other objects.- Specified by:
releaseExternalResourcesin interfaceExternalResourceReleasable
-
shutdown
public void shutdown()
Description copied from interface:NioSelectorPoolShutdown theNioSelectorPooland all internal created resources- Specified by:
shutdownin interfaceNioSelectorPool
-
-