Package ch.qos.logback.core.util
Class ExecutorServiceUtil
- java.lang.Object
-
- ch.qos.logback.core.util.ExecutorServiceUtil
-
public class ExecutorServiceUtil extends Object
Static 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 ExecutorServicenewExecutorService()Creates an executor service suitable for use by logback components.static ScheduledExecutorServicenewScheduledExecutorService()static voidshutdown(ExecutorService executorService)Shuts down an executor service.
-
-
-
Method Detail
-
newScheduledExecutorService
public static ScheduledExecutorService newScheduledExecutorService()
-
newExecutorService
public static ExecutorService newExecutorService()
Creates an executor service suitable for use by logback components.- Returns:
- executor service
-
shutdown
public static void shutdown(ExecutorService executorService)
Shuts down an executor service.- Parameters:
executorService- the executor service to shut down
-
-