public abstract class AbstractNioBossPool<E extends Boss> extends java.lang.Object implements BossPool<E>, ExternalResourceReleasable
限定符和类型 | 方法和说明 |
---|---|
protected void |
init() |
protected abstract E |
newBoss(java.util.concurrent.Executor executor)
Create a new
Boss which uses the given Executor to service IO |
E |
nextBoss()
Return the next
Boss to use |
void |
rebuildSelectors()
Replaces the current
Selector s of the Boss es with new Selector s to work around the
infamous epoll 100% CPU bug. |
void |
releaseExternalResources()
Releases the external resources that this object depends on.
|
void |
shutdown()
Shutdown the
NioSelectorPool and all internal created resources |
protected void init()
protected abstract E newBoss(java.util.concurrent.Executor executor)
Boss
which uses the given Executor
to service IOexecutor
- the Executor
to useBoss
public void rebuildSelectors()
NioSelectorPool
Selector
s of the Boss
es with new Selector
s to work around the
infamous epoll 100% CPU bug.rebuildSelectors
在接口中 NioSelectorPool
public void releaseExternalResources()
ExternalResourceReleasable
public void shutdown()
NioSelectorPool
NioSelectorPool
and all internal created resourcesshutdown
在接口中 NioSelectorPool