List of utility methods to do Thread Executor
boolean | isShutDown(ExecutorService executorService) is Shut Down return (executorService == null || executorService.isShutdown());
|
void | setTimeout(Long duration, Runnable csr) set Timeout final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
scheduler.schedule(csr, duration, TimeUnit.MILLISECONDS);
|
Future> | submitTask(Runnable command) Submits a task for concurrent execution. return getThreadPool().submit(command);
|