Package org.carrot2.util
Class ExecutorServiceUtils
java.lang.Object
org.carrot2.util.ExecutorServiceUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorService
createExecutorService
(int maxConcurrentThreads, Class<?> clazz)
-
Constructor Details
-
ExecutorServiceUtils
public ExecutorServiceUtils()
-
-
Method Details
-
createExecutorService
- Returns:
- Return an executor service with a fixed thread pool of
maxConcurrentThreads
threads and context class loader initialized toclazz
's context class loader.
-