public class ExecutorServiceUtil
extends java.lang.Object
ExecutorService.| Modifier and Type | Field and Description |
|---|---|
private static java.util.concurrent.ThreadFactory |
THREAD_FACTORY |
| Constructor and Description |
|---|
ExecutorServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.concurrent.ExecutorService |
newExecutorService()
Creates an executor service suitable for use by logback components.
|
static java.util.concurrent.ScheduledExecutorService |
newScheduledExecutorService() |
static void |
shutdown(java.util.concurrent.ExecutorService executorService)
Shuts down an executor service.
|
public static java.util.concurrent.ScheduledExecutorService newScheduledExecutorService()
public static java.util.concurrent.ExecutorService newExecutorService()
public static void shutdown(java.util.concurrent.ExecutorService executorService)
executorService - the executor service to shut down