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 E |
createWorker(Executor executor)
|
protected abstract E |
createWorker(Executor executor,
boolean allowShutdownOnIdle)
Deprecated.
|
E |
nextWorker()
Return the next
Worker to use |
void |
releaseExternalResources()
Releases the external resources that this object depends on.
|
@Deprecated protected abstract E createWorker(Executor executor, boolean allowShutdownOnIdle)
createWorker(Executor)
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-2012 The Netty Project. All Rights Reserved.