Package org.infinispan.factories.threads
Class EnhancedQueueExecutorFactory
java.lang.Object
org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory<ExecutorService>
org.infinispan.factories.threads.EnhancedQueueExecutorFactory
- All Implemented Interfaces:
ThreadPoolExecutorFactory<ExecutorService>
public class EnhancedQueueExecutorFactory
extends AbstractThreadPoolExecutorFactory<ExecutorService>
Executor Factory used for blocking executors which utilizes
EnhancedQueueExecutor internally.- Author:
- wburns
-
Field Summary
Fields inherited from class org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory
coreThreads, keepAlive, maxThreads, queueLength -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEnhancedQueueExecutorFactory(int maxThreads, int coreThreads, int queueLength, long keepAlive) -
Method Summary
Modifier and TypeMethodDescriptionstatic EnhancedQueueExecutorFactorycreate(int maxThreads, int queueSize) createExecutor(ThreadFactory factory) voidvalidate()Validate parameters for the thread pool executor factoryMethods inherited from class org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory
coreThreads, keepAlive, maxThreads, queueLengthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.executors.ThreadPoolExecutorFactory
createsNonBlockingThreads
-
Constructor Details
-
EnhancedQueueExecutorFactory
protected EnhancedQueueExecutorFactory(int maxThreads, int coreThreads, int queueLength, long keepAlive)
-
-
Method Details
-
create
-
createExecutor
-
validate
public void validate()Description copied from interface:ThreadPoolExecutorFactoryValidate parameters for the thread pool executor factory
-