Java Utililty Methods Thread Executor

List of utility methods to do Thread Executor

Description

The list of methods to do Thread Executor are organized into topic(s).

Method

booleanisShutDown(ExecutorService executorService)
is Shut Down
return (executorService == null || executorService.isShutdown());
voidsetTimeout(Long duration, Runnable csr)
set Timeout
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
scheduler.schedule(csr, duration, TimeUnit.MILLISECONDS);
FuturesubmitTask(Runnable command)
Submits a task for concurrent execution.
return getThreadPool().submit(command);