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
An alternate implementation of which returns a virtual thread per task executor when available.static 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
-
newAlternateThreadPoolExecutor
An alternate implementation of which returns a virtual thread per task executor when available.- Since:
- 1.3.12/1.4.12
-
newThreadPoolExecutor()