Package org.citydb.concurrent
Class SingleWorkerPool<T>
- java.lang.Object
-
- org.citydb.concurrent.WorkerPool<T>
-
- org.citydb.concurrent.SingleWorkerPool<T>
-
public class SingleWorkerPool<T> extends WorkerPool<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.citydb.concurrent.WorkerPool
WorkerPool.WorkQueue<E>
-
-
Constructor Summary
Constructors Constructor Description SingleWorkerPool(java.lang.String poolName, WorkerFactory<T> workerFactory, int queueSize)
SingleWorkerPool(java.lang.String poolName, WorkerFactory<T> workerFactory, int queueSize, boolean fair)
SingleWorkerPool(java.lang.String poolName, WorkerFactory<T> workerFactory, int queueSize, boolean fair, boolean daemon)
-
Method Summary
-
Methods inherited from class org.citydb.concurrent.WorkerPool
addWork, addWorkAndWait, awaitQueueEmpty, drainWorkQueue, getCorePoolSize, getDefaultContextClassLoader, getMaximumPoolSize, getMaximumQueueSize, getName, getPoolSize, getPoolSizeAdaptationStrategy, getWorkerFactory, getWorkQueue, isTerminated, isTerminating, join, prestartCoreWorker, prestartCoreWorkers, setContextClassLoader, setCorePoolSize, setEventSource, setMaximumPoolSize, setPoolSizeAdaptationStrategy, shutdown, shutdownAndWait, shutdownNow
-
-
-
-
Constructor Detail
-
SingleWorkerPool
public SingleWorkerPool(java.lang.String poolName, WorkerFactory<T> workerFactory, int queueSize, boolean fair, boolean daemon)
-
SingleWorkerPool
public SingleWorkerPool(java.lang.String poolName, WorkerFactory<T> workerFactory, int queueSize, boolean fair)
-
SingleWorkerPool
public SingleWorkerPool(java.lang.String poolName, WorkerFactory<T> workerFactory, int queueSize)
-
-