Class ExecutorServiceUtils


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

      • ExecutorServiceUtils

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