public static ExecutorService newMaxQueueThreadPool ( int numWorkerThreads , long waitingMillis , int maxQueue ) { return new ThreadPoolExecutor ( numWorkerThreads , numWorkerThreads , 0L , TimeUnit . MILLISECONDS , waitingMillis > 0 ? getWaitingLimitedBlockingQueue ( waitingMillis , maxQueue ) : getLimitedBlockingQueue ( maxQueue ) ) ; }
New max queue thread pool executor service .