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
Selectors of the Bosses with new Selectors 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 useBosspublic void rebuildSelectors()
NioSelectorPoolSelectors of the Bosses with new Selectors to work around the
infamous epoll 100% CPU bug.rebuildSelectors 在接口中 NioSelectorPoolpublic void releaseExternalResources()
ExternalResourceReleasablepublic void shutdown()
NioSelectorPoolNioSelectorPool and all internal created resourcesshutdown 在接口中 NioSelectorPool