List of usage examples for java.util.concurrent ThreadPoolExecutor ThreadPoolExecutor
public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)
From source file:zlyh.dmitry.recaller.services.RecordService.java
@Override public void onCreate() { super.onCreate(); nosizequeue = new SynchronousQueue<>(); executor = new ThreadPoolExecutor(1, 1, 1, TimeUnit.MINUTES, nosizequeue); }