Java Utililty Methods Thread Executor Pool

List of utility methods to do Thread Executor Pool

Description

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

Method

ExecutorServicegetThrealPool()
get Threal Pool
return threalPool;
ExecutorServicegetTightThreadPool()
get Tight Thread Pool
return getTightThreadPool(1d);
voidnormalShutdown(ExecutorService pool, int timeout, TimeUnit timeUnit)
normal Shutdown
try {
    pool.shutdownNow();
    if (!pool.awaitTermination(timeout, timeUnit)) {
        System.err.println("Pool did not terminate");
} catch (InterruptedException ie) {
    Thread.currentThread().interrupt();
voidsafeClose(ExecutorService pool)
close the thread pool safely.
if (pool != null) {
    pool.shutdown();
    try {
        if (!pool.awaitTermination(60, TimeUnit.SECONDS)) {
            pool.shutdownNow();
    } catch (InterruptedException ex) {