public abstract class AbstractNioWorkerPool<E extends org.jboss.netty.channel.socket.nio.AbstractNioWorker> extends Object implements WorkerPool<E>, ExternalResourceReleasable
WorkerPool
implementations that create the Worker
's
up-front and return them in a "fair" fashion when calling nextWorker()
Modifier and Type | Method and Description |
---|---|
protected abstract E |
createWorker(Executor executor)
|
E |
nextWorker()
Return the next
Worker to use |
void |
releaseExternalResources()
Releases the external resources that this object depends on.
|
public E nextWorker()
WorkerPool
Worker
to usenextWorker
in interface WorkerPool<E extends org.jboss.netty.channel.socket.nio.AbstractNioWorker>
public void releaseExternalResources()
ExternalResourceReleasable
releaseExternalResources
in interface ExternalResourceReleasable
Copyright © 2008-2013 The Netty Project. All Rights Reserved.