Here you can find the source of getThreadPoolExecutor(int poolSize, int[] poolInfo)
public static ThreadPoolExecutor getThreadPoolExecutor(int poolSize, int[] poolInfo)
//package com.java2s; // are made available under the terms of the Eclipse Public License v1.0 import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class Main { public static ThreadPoolExecutor getThreadPoolExecutor(int poolSize, int[] poolInfo) { return new ThreadPoolExecutor(poolSize, poolInfo[0], poolInfo[1], TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>( poolInfo[2]));/*from w w w. ja v a 2 s .com*/ } }