public class ServiceWorkerPool
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ServiceWorkerPool.Worker |
Constructor and Description |
---|
ServiceWorkerPool(Service s,
EventHandler eh,
int maxThreads) |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(org.apache.commons.pool2.ObjectPool<?> pool)
Deprecated.
since 3.11.0 use
Closer#closeQuietly(Closeable) instead. |
org.apache.commons.pool2.impl.GenericObjectPool<ServiceWorkerPool.Worker> |
createCommonsObjectPool() |
java.util.concurrent.ExecutorService |
createExecutor(java.lang.String prefix) |
void |
warmup(org.apache.commons.pool2.impl.GenericObjectPool<ServiceWorkerPool.Worker> objectPool) |
public ServiceWorkerPool(Service s, EventHandler eh, int maxThreads) throws CoreException
CoreException
public org.apache.commons.pool2.impl.GenericObjectPool<ServiceWorkerPool.Worker> createCommonsObjectPool() throws CoreException
CoreException
public java.util.concurrent.ExecutorService createExecutor(java.lang.String prefix)
@Deprecated public static void closeQuietly(org.apache.commons.pool2.ObjectPool<?> pool)
Closer#closeQuietly(Closeable)
instead.public void warmup(org.apache.commons.pool2.impl.GenericObjectPool<ServiceWorkerPool.Worker> objectPool) throws CoreException
CoreException