Home | History | Annotate | Download | only in ch

Lines Matching defs:ThreadPool

37 public class ThreadPool {
52 private ThreadPool(ExecutorService executor,
94 final static ThreadPool defaultThreadPool = createDefault();
98 static ThreadPool getDefault() {
103 static ThreadPool createDefault() {
114 return new ThreadPool(executor, false, initialSize);
118 static ThreadPool create(int nThreads, ThreadFactory factory) {
122 return new ThreadPool(executor, true, nThreads);
126 public static ThreadPool wrap(ExecutorService executor, int initialSize) {
145 return new ThreadPool(executor, false, initialSize);