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 NioDatagramWorkernewWorker(java.util.concurrent.Executor executor)Create a newWorkerwhich uses the givenExecutorto 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:AbstractNioWorkerPoolCreate a newWorkerwhich uses the givenExecutorto service IO.- Specified by:
newWorkerin classAbstractNioWorkerPool<NioDatagramWorker>- Parameters:
executor- theExecutorto use- Returns:
- worker the new
Worker
-
-