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 Details
-
init
protected void init() -
newBoss
-
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
-