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