public final class ShareableWorkerPool<E extends Worker> extends Object implements WorkerPool<E>
WorkerPool
should be used if you plan to share a
WorkerPool
between different Factories. You will need to call destroy()
by your
own once you want to release any resources of it.Constructor and Description |
---|
ShareableWorkerPool(WorkerPool<E> wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the
ShareableWorkerPool and release all resources. |
E |
nextWorker()
Return the next
Worker to use |
public ShareableWorkerPool(WorkerPool<E> wrapped)
public E nextWorker()
WorkerPool
Worker
to usenextWorker
in interface WorkerPool<E extends Worker>
public void destroy()
ShareableWorkerPool
and release all resources. After this is called its not usable anymoreCopyright © 2008-2013 The Netty Project. All Rights Reserved.