Package ch.qos.logback.core.util
Class ExecutorServiceUtil
java.lang.Object
ch.qos.logback.core.util.ExecutorServiceUtil
Static utility methods for manipulating an
ExecutorService
.- Author:
- Carl Harris, Mikhail Mazursky
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorService
Deprecated.static ScheduledExecutorService
static ThreadPoolExecutor
Creates an ThreadPoolExecutor suitable for use by logback components.static void
shutdown
(ExecutorService executorService) Shuts down an executor service.
-
Constructor Details
-
ExecutorServiceUtil
public ExecutorServiceUtil()
-
-
Method Details
-
newScheduledExecutorService
-
newExecutorService
Deprecated.replaced bynewThreadPoolExecutor()
-
newThreadPoolExecutor
Creates an ThreadPoolExecutor suitable for use by logback components.- Returns:
- ThreadPoolExecutor
- Since:
- 1.4.7
-
shutdown
Shuts down an executor service.- Parameters:
executorService
- the executor service to shut down
-
newThreadPoolExecutor()