public final class ThreadUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
shutdownExecutorService(ExecutorService executorService) |
static void |
shutdownExecutorService(ExecutorService executorService,
int timeoutS) |
static ThreadFactory |
threadFactory(String threadName) |
static ThreadFactory |
threadFactory(String threadName,
boolean isDaemon) |
public static ThreadFactory threadFactory(String threadName, boolean isDaemon)
public static ThreadFactory threadFactory(String threadName)
public static void shutdownExecutorService(ExecutorService executorService) throws InterruptedException
InterruptedExceptionpublic static void shutdownExecutorService(ExecutorService executorService, int timeoutS) throws InterruptedException
InterruptedExceptionCopyright © 2018. All rights reserved.