public static void setThreadPoolSize ( int threads ) { setThreadPool ( new ThreadPoolExecutor ( threads , threads , 0L , TimeUnit . MILLISECONDS , new LinkedBlockingQueue < Runnable > ( ) ) ) ; }
Sets thread pool to given size .