类 ExecutorFactory


  • public final class ExecutorFactory
    extends java.lang.Object
    Unified thread pool creation factory, and actively create thread pool resources by ThreadPoolManager for unified life cycle management ExecutorFactory.Managed.

    Unified thread pool creation factory without life cycle management ExecutorFactory.

    two check style ignore will be removed after issue#2856 finished.

    作者:
    liaochuntao
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.util.concurrent.ThreadPoolExecutor newCustomerThreadExecutor​(int coreThreads, int maxThreads, long keepAliveTimeMs, java.util.concurrent.ThreadFactory threadFactory)  
      static java.util.concurrent.ExecutorService newFixedExecutorService​(int nThreads)  
      static java.util.concurrent.ExecutorService newFixedExecutorService​(int nThreads, java.util.concurrent.ThreadFactory threadFactory)  
      static java.util.concurrent.ScheduledExecutorService newScheduledExecutorService​(int nThreads, java.util.concurrent.ThreadFactory threadFactory)  
      static java.util.concurrent.ExecutorService newSingleExecutorService()  
      static java.util.concurrent.ExecutorService newSingleExecutorService​(java.util.concurrent.ThreadFactory threadFactory)  
      static java.util.concurrent.ScheduledExecutorService newSingleScheduledExecutorService​(java.util.concurrent.ThreadFactory threadFactory)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ExecutorFactory

        public ExecutorFactory()
    • 方法详细资料

      • newSingleExecutorService

        public static java.util.concurrent.ExecutorService newSingleExecutorService()
      • newSingleExecutorService

        public static java.util.concurrent.ExecutorService newSingleExecutorService​(java.util.concurrent.ThreadFactory threadFactory)
      • newFixedExecutorService

        public static java.util.concurrent.ExecutorService newFixedExecutorService​(int nThreads)
      • newFixedExecutorService

        public static java.util.concurrent.ExecutorService newFixedExecutorService​(int nThreads,
                                                                                   java.util.concurrent.ThreadFactory threadFactory)
      • newSingleScheduledExecutorService

        public static java.util.concurrent.ScheduledExecutorService newSingleScheduledExecutorService​(java.util.concurrent.ThreadFactory threadFactory)
      • newScheduledExecutorService

        public static java.util.concurrent.ScheduledExecutorService newScheduledExecutorService​(int nThreads,
                                                                                                java.util.concurrent.ThreadFactory threadFactory)
      • newCustomerThreadExecutor

        public static java.util.concurrent.ThreadPoolExecutor newCustomerThreadExecutor​(int coreThreads,
                                                                                        int maxThreads,
                                                                                        long keepAliveTimeMs,
                                                                                        java.util.concurrent.ThreadFactory threadFactory)