Package org.carrot2.util
Class ExecutorServiceUtils
java.lang.Object
org.carrot2.util.ExecutorServiceUtils
public class ExecutorServiceUtils extends Object
A number of utility methods for working with the
Executor
s framework.-
Constructor Summary
Constructors Constructor Description ExecutorServiceUtils()
-
Method Summary
Modifier and Type Method Description static 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.
-