public abstract class AbstractNioBossPool<E extends Boss> extends Object implements BossPool<E>, ExternalResourceReleasable
Modifier and Type | Method and Description |
---|---|
protected void |
init() |
protected abstract E |
newBoss(Executor executor)
|
E |
nextBoss()
Return the next
Boss to use |
void |
rebuildSelectors()
|
void |
releaseExternalResources()
Releases the external resources that this object depends on.
|
void |
shutdown()
Shutdown the
NioSelectorPool and all internal created resources |
protected void init()
public E nextBoss()
BossPool
Boss
to usepublic void rebuildSelectors()
NioSelectorPool
Selector
s of the Boss
es with new Selector
s to work around the
infamous epoll 100% CPU bug.rebuildSelectors
in interface NioSelectorPool
public void releaseExternalResources()
ExternalResourceReleasable
releaseExternalResources
in interface ExternalResourceReleasable
public void shutdown()
NioSelectorPool
NioSelectorPool
and all internal created resourcesshutdown
in interface NioSelectorPool
Copyright © 2008-2015 The Netty Project. All Rights Reserved.