Class ExecutorUtils


  • public class ExecutorUtils
    extends Object
    • Constructor Detail

      • ExecutorUtils

        public ExecutorUtils()
    • Method Detail

      • newFixedThreadPool

        public static ExecutorService newFixedThreadPool​(int nThreads,
                                                         String name)
        Creates a fixed thread pool with named daemon threads that will expire after 60 seconds of inactivity.
        Parameters:
        nThreads -
        name -
      • newFixedThreadPool

        public static ExecutorService newFixedThreadPool​(int nThreads,
                                                         int maxQueue,
                                                         String name)
      • getDirectExecutor

        public static Executor getDirectExecutor()