public final class ThreadPoolUtils
extends java.lang.Object
Constructor and Description |
---|
ThreadPoolUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.ThreadPoolExecutor |
newLimitedThreadPool(int minNumberOfThreads,
int maxNumberOfThreads,
long defaultRemoveIdleThread,
int bufferSize) |
static void |
stop(java.util.concurrent.ThreadPoolExecutor threadPool,
long timeout,
java.util.concurrent.TimeUnit timeUnit) |
public static java.util.concurrent.ThreadPoolExecutor newLimitedThreadPool(int minNumberOfThreads, int maxNumberOfThreads, long defaultRemoveIdleThread, int bufferSize)
public static void stop(java.util.concurrent.ThreadPoolExecutor threadPool, long timeout, java.util.concurrent.TimeUnit timeUnit)