Class ExecutorServiceUtils

java.lang.Object
org.carrot2.util.ExecutorServiceUtils

public class ExecutorServiceUtils
extends Object
A number of utility methods for working with the Executors framework.
  • Constructor Details

  • Method Details

    • 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 to clazz's context class loader.