- java.lang.Object
-
- ch.qos.logback.core.util.ExecutorServiceUtil
-
public class ExecutorServiceUtil extends Object
Static utility methods for manipulating anExecutorService.- Author:
- Carl Harris, Mikhail Mazursky
-
-
Constructor Summary
Constructors Constructor Description ExecutorServiceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ExecutorServicenewAlternateThreadPoolExecutor()An alternate implementation ofnewThreadPoolExecutor()which returns a virtual thread per task executor when available.static ExecutorServicenewExecutorService()Deprecated.replaced bynewThreadPoolExecutor()static ScheduledExecutorServicenewScheduledExecutorService()static ThreadPoolExecutornewThreadPoolExecutor()Creates an ThreadPoolExecutor suitable for use by logback components.static voidshutdown(ExecutorService executorService)Shuts down an executor service.
-
-
-
Constructor Detail
-
ExecutorServiceUtil
public ExecutorServiceUtil()
-
-
Method Detail
-
newScheduledExecutorService
public static ScheduledExecutorService newScheduledExecutorService()
-
newExecutorService
public static ExecutorService newExecutorService()
Deprecated.replaced bynewThreadPoolExecutor()
-
newThreadPoolExecutor
public static ThreadPoolExecutor newThreadPoolExecutor()
Creates an ThreadPoolExecutor suitable for use by logback components.- Returns:
- ThreadPoolExecutor
- Since:
- 1.4.7
-
shutdown
public static void shutdown(ExecutorService executorService)
Shuts down an executor service.- Parameters:
executorService- the executor service to shut down
-
newAlternateThreadPoolExecutor
public static ExecutorService newAlternateThreadPoolExecutor()
An alternate implementation ofnewThreadPoolExecutor()which returns a virtual thread per task executor when available.- Since:
- 1.3.12/1.4.12
-
-