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 void
init()
protected abstract E
newBoss(Executor executor)
E
nextBoss()
Return the nextBoss
to usevoid
rebuildSelectors()
void
releaseExternalResources()
Releases the external resources that this object depends on.void
shutdown()
Shutdown theNioSelectorPool
and all internal created resources
-
-
-
Method Detail
-
init
protected void init()
-
nextBoss
public E nextBoss()
Description copied from interface:BossPool
Return the nextBoss
to use
-
rebuildSelectors
public void rebuildSelectors()
Description copied from interface:NioSelectorPool
Replaces the currentSelector
s of theBoss
es with newSelector
s to work around the infamous epoll 100% CPU bug.- Specified by:
rebuildSelectors
in interfaceNioSelectorPool
-
releaseExternalResources
public void releaseExternalResources()
Description copied from interface:ExternalResourceReleasable
Releases 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:
releaseExternalResources
in interfaceExternalResourceReleasable
-
shutdown
public void shutdown()
Description copied from interface:NioSelectorPool
Shutdown theNioSelectorPool
and all internal created resources- Specified by:
shutdown
in interfaceNioSelectorPool
-
-