Here you can find the source of createExecutorService()
public static ThreadPoolExecutor createExecutorService()
//package com.java2s; //License from project: Open Source License import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class Main { public static ThreadPoolExecutor createExecutorService() { return new ThreadPoolExecutor(1, 1, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>()); }//from w w w.j a v a2 s . c om }