/** * Performs a shutdown now (aggressively) on the thread pool. * * @see ThreadPoolUtils#shutdownNow(java.util.concurrent.ExecutorService) */ public void shutdownNow() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownNow(executor); } clearExecutor(); }
/** * Performs a shutdown only, by which the thread pool is shutdown by not graceful nor aggressively. * * @see ThreadPoolUtils#shutdown(java.util.concurrent.ExecutorService) */ public void shutdown() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdown(executor); } clearExecutor(); }
/** * Performs a graceful shutdown. * * @see ThreadPoolUtils#shutdownGraceful(java.util.concurrent.ExecutorService) */ public void shutdownGraceful() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownGraceful(executor, shutdownAwaitTermination); } clearExecutor(); }
/** * Performs a shutdown now (aggressively) on the thread pool. * * @see ThreadPoolUtils#shutdownNow(java.util.concurrent.ExecutorService) */ public void shutdownNow() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownNow(executor); } clearExecutor(); }
/** * Performs a shutdown now (aggressively) on the thread pool. * * @see ThreadPoolUtils#shutdownNow(java.util.concurrent.ExecutorService) */ public void shutdownNow() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownNow(executor); } clearExecutor(); }
/** * Performs a shutdown only, by which the thread pool is shutdown by not graceful nor aggressively. * * @see ThreadPoolUtils#shutdown(java.util.concurrent.ExecutorService) */ public void shutdown() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdown(executor); } clearExecutor(); }
/** * Performs a graceful shutdown. * * @see ThreadPoolUtils#shutdownGraceful(java.util.concurrent.ExecutorService) */ public void shutdownGraceful() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownGraceful(executor, shutdownAwaitTermination); } clearExecutor(); }
/** * Performs a graceful shutdown. * * @see ThreadPoolUtils#shutdownGraceful(java.util.concurrent.ExecutorService) */ public void shutdownGraceful() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownGraceful(executor, shutdownAwaitTermination); } clearExecutor(); }
/** * Performs a graceful shutdown. * * @see ThreadPoolUtils#shutdownGraceful(java.util.concurrent.ExecutorService) */ public void shutdownGraceful() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownGraceful(executor, shutdownAwaitTermination); } clearExecutor(); }
/** * Performs a shutdown only, by which the thread pool is shutdown by not graceful nor aggressively. * * @see ThreadPoolUtils#shutdown(java.util.concurrent.ExecutorService) */ public void shutdown() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdown(executor); } clearExecutor(); }
/** * Performs a shutdown only, by which the thread pool is shutdown by not graceful nor aggressively. * * @see ThreadPoolUtils#shutdown(java.util.concurrent.ExecutorService) */ public void shutdown() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdown(executor); } clearExecutor(); }
/** * Performs a shutdown now (aggressively) on the thread pool. * * @see ThreadPoolUtils#shutdownNow(java.util.concurrent.ExecutorService) */ public void shutdownNow() { ExecutorService executor = executorRef.get(); if (executor != null) { ThreadPoolUtils.shutdownNow(executor); } clearExecutor(); }