public class NioWorkerPool extends AbstractNioWorkerPool<NioWorker>
NioWorker
's构造器和说明 |
---|
NioWorkerPool(java.util.concurrent.Executor workerExecutor,
int workerCount) |
NioWorkerPool(java.util.concurrent.Executor workerExecutor,
int workerCount,
ThreadNameDeterminer determiner) |
限定符和类型 | 方法和说明 |
---|---|
protected NioWorker |
newWorker(java.util.concurrent.Executor executor)
Create a new
Worker which uses the given Executor to service IO. |
init, nextWorker, rebuildSelectors, releaseExternalResources, shutdown
public NioWorkerPool(java.util.concurrent.Executor workerExecutor, int workerCount)
public NioWorkerPool(java.util.concurrent.Executor workerExecutor, int workerCount, ThreadNameDeterminer determiner)
protected NioWorker newWorker(java.util.concurrent.Executor executor)
AbstractNioWorkerPool
Worker
which uses the given Executor
to service IO.newWorker
在类中 AbstractNioWorkerPool<NioWorker>
executor
- the Executor
to useWorker