Package org.infinispan.factories.threads
Class AbstractThreadPoolExecutorFactory<T extends ExecutorService>
java.lang.Object
org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory<T>
- All Implemented Interfaces:
ThreadPoolExecutorFactory<T>
- Direct Known Subclasses:
EnhancedQueueExecutorFactory
,NonBlockingThreadPoolExecutorFactory
public abstract class AbstractThreadPoolExecutorFactory<T extends ExecutorService>
extends Object
implements ThreadPoolExecutorFactory<T>
Abstract
ThreadPoolExecutorFactory
that contains commons variables for configuring a thread pool- Author:
- wburns
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final long
protected final int
protected final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractThreadPoolExecutorFactory
(int maxThreads, int coreThreads, int queueLength, long keepAlive) -
Method Summary
Modifier and TypeMethodDescriptionint
long
int
int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commons.executors.ThreadPoolExecutorFactory
createExecutor, createsNonBlockingThreads, validate
-
Field Details
-
maxThreads
protected final int maxThreads -
coreThreads
protected final int coreThreads -
queueLength
protected final int queueLength -
keepAlive
protected final long keepAlive
-
-
Constructor Details
-
AbstractThreadPoolExecutorFactory
protected AbstractThreadPoolExecutorFactory(int maxThreads, int coreThreads, int queueLength, long keepAlive)
-
-
Method Details
-
maxThreads
public int maxThreads() -
coreThreads
public int coreThreads() -
queueLength
public int queueLength() -
keepAlive
public long keepAlive()
-