Class ExecutorServiceUtil


  • public class ExecutorServiceUtil
    extends java.lang.Object
    Static utility methods for manipulating an ExecutorService.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.concurrent.ThreadFactory THREAD_FACTORY  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.ExecutorService newExecutorService()
      Creates an executor service suitable for use by logback components.
      static java.util.concurrent.ScheduledExecutorService newScheduledExecutorService()  
      static void shutdown​(java.util.concurrent.ExecutorService executorService)
      Shuts down an executor service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • THREAD_FACTORY

        private static final java.util.concurrent.ThreadFactory THREAD_FACTORY
    • Constructor Detail

      • ExecutorServiceUtil

        public ExecutorServiceUtil()
    • 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