public static ThreadPoolExecutor newFixedThreadPool ( int threads , String groupname , int queueSize ) { return new ThreadPoolExecutor ( threads , threads , 0L , TimeUnit . MILLISECONDS , new LinkedBlockingQueue < Runnable > ( queueSize ) , new SearchThreadFactory ( groupname ) , new BlockPolicy ( ) ) ; }
Creates a new fixed size ThreadPoolExecutor