public class ExecutorUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExecutorUtil.MDCAwareThreadPoolExecutor |
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
ExecutorUtil() |
Modifier and Type | Method and Description |
---|---|
static ExecutorService |
newMDCAwareCachedThreadPool(ThreadFactory threadFactory)
|
static ExecutorService |
newMDCAwareFixedThreadPool(int nThreads,
ThreadFactory threadFactory)
|
static ExecutorService |
newMDCAwareSingleThreadExecutor(ThreadFactory threadFactory)
|
static void |
shutdownAndAwaitTermination(ExecutorService pool) |
static void |
shutdownAndAwaitTermination(ExecutorService pool,
long timeout,
TimeUnit timeUnit) |
static void |
shutdownNowAndAwaitTermination(ExecutorService pool) |
public static void shutdownNowAndAwaitTermination(ExecutorService pool)
public static void shutdownAndAwaitTermination(ExecutorService pool)
public static void shutdownAndAwaitTermination(ExecutorService pool, long timeout, TimeUnit timeUnit)
public static ExecutorService newMDCAwareFixedThreadPool(int nThreads, ThreadFactory threadFactory)
public static ExecutorService newMDCAwareSingleThreadExecutor(ThreadFactory threadFactory)
public static ExecutorService newMDCAwareCachedThreadPool(ThreadFactory threadFactory)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.