Class ExecutorServiceUtil

java.lang.Object
ch.qos.logback.core.util.ExecutorServiceUtil

public class ExecutorServiceUtil extends Object
Static utility methods for manipulating an ExecutorService.
Author:
Carl Harris, Mikhail Mazursky
  • Constructor Details

    • ExecutorServiceUtil

      public ExecutorServiceUtil()
  • Method Details

    • newScheduledExecutorService

      public static ScheduledExecutorService newScheduledExecutorService()
    • newExecutorService

      public static ExecutorService newExecutorService()
      Deprecated.
    • 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