Package org.infinispan.factories.threads
Class NonBlockingThreadPoolExecutorFactory
java.lang.Object
org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory<ExecutorService>
org.infinispan.factories.threads.NonBlockingThreadPoolExecutorFactory
- All Implemented Interfaces:
ThreadPoolExecutorFactory<ExecutorService>
public class NonBlockingThreadPoolExecutorFactory
extends AbstractThreadPoolExecutorFactory<ExecutorService>
Executor Factory used for non blocking executors which utilizes
ThreadPoolExecutor
internally.- Author:
- wburns
-
Field Summary
Fields inherited from class org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory
coreThreads, keepAlive, maxThreads, queueLength
-
Constructor Summary
ModifierConstructorDescriptionprotected
NonBlockingThreadPoolExecutorFactory
(int maxThreads, int coreThreads, int queueLength, long keepAlive) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int maxThreads, int queueSize) createExecutor
(ThreadFactory threadFactory) boolean
toString()
void
validate()
Validate parameters for the thread pool executor factoryMethods inherited from class org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory
coreThreads, keepAlive, maxThreads, queueLength
-
Field Details
-
DEFAULT_KEEP_ALIVE_MILLIS
public static final int DEFAULT_KEEP_ALIVE_MILLIS- See Also:
-
-
Constructor Details
-
NonBlockingThreadPoolExecutorFactory
protected NonBlockingThreadPoolExecutorFactory(int maxThreads, int coreThreads, int queueLength, long keepAlive)
-
-
Method Details
-
createsNonBlockingThreads
public boolean createsNonBlockingThreads() -
createExecutor
-
validate
public void validate()Description copied from interface:ThreadPoolExecutorFactory
Validate parameters for the thread pool executor factory -
toString
-
create
-