Package ch.qos.logback.core.util
Class ExecutorServiceUtil
- java.lang.Object
-
- ch.qos.logback.core.util.ExecutorServiceUtil
-
public class ExecutorServiceUtil extends java.lang.ObjectStatic utility methods for manipulating anExecutorService.
-
-
Constructor Summary
Constructors Constructor Description ExecutorServiceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ExecutorServicenewExecutorService()Creates an executor service suitable for use by logback components.static java.util.concurrent.ScheduledExecutorServicenewScheduledExecutorService()static voidshutdown(java.util.concurrent.ExecutorService executorService)Shuts down an executor service.
-
-
-
Method Detail
-
newScheduledExecutorService
public static java.util.concurrent.ScheduledExecutorService newScheduledExecutorService()
-
newExecutorService
public static java.util.concurrent.ExecutorService newExecutorService()
Creates an executor service suitable for use by logback components.- Returns:
- executor service
-
shutdown
public static void shutdown(java.util.concurrent.ExecutorService executorService)
Shuts down an executor service.- Parameters:
executorService- the executor service to shut down
-
-