Class NioDatagramWorkerPool
- java.lang.Object
-
- org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool<NioDatagramWorker>
-
- org.jboss.netty.channel.socket.nio.NioDatagramWorkerPool
-
- All Implemented Interfaces:
NioSelectorPool
,WorkerPool<NioDatagramWorker>
,ExternalResourceReleasable
public class NioDatagramWorkerPool extends AbstractNioWorkerPool<NioDatagramWorker>
Default implementation which hands ofNioDatagramWorker
's
-
-
Constructor Summary
Constructors Constructor Description NioDatagramWorkerPool(java.util.concurrent.Executor executor, int workerCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NioDatagramWorker
newWorker(java.util.concurrent.Executor executor)
Create a newWorker
which uses the givenExecutor
to service IO.-
Methods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool
init, nextWorker, rebuildSelectors, releaseExternalResources, shutdown
-
-
-
-
Method Detail
-
newWorker
protected NioDatagramWorker newWorker(java.util.concurrent.Executor executor)
Description copied from class:AbstractNioWorkerPool
Create a newWorker
which uses the givenExecutor
to service IO.- Specified by:
newWorker
in classAbstractNioWorkerPool<NioDatagramWorker>
- Parameters:
executor
- theExecutor
to use- Returns:
- worker the new
Worker
-
-