类 ExecutorFactory
- java.lang.Object
-
- com.alibaba.nacos.common.executor.ExecutorFactory
-
public final class ExecutorFactory extends java.lang.ObjectUnified thread pool creation factory, and actively create thread pool resources by ThreadPoolManager for unified life cycle managementExecutorFactory.Managed.Unified thread pool creation factory without life cycle management
ExecutorFactory.two check style ignore will be removed after issue#2856 finished.
- 作者:
- liaochuntao
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classExecutorFactory.Managed
-
构造器概要
构造器 构造器 说明 ExecutorFactory()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static java.util.concurrent.ThreadPoolExecutornewCustomerThreadExecutor(int coreThreads, int maxThreads, long keepAliveTimeMs, java.util.concurrent.ThreadFactory threadFactory)static java.util.concurrent.ExecutorServicenewFixedExecutorService(int nThreads)static java.util.concurrent.ExecutorServicenewFixedExecutorService(int nThreads, java.util.concurrent.ThreadFactory threadFactory)static java.util.concurrent.ScheduledExecutorServicenewScheduledExecutorService(int nThreads, java.util.concurrent.ThreadFactory threadFactory)static java.util.concurrent.ExecutorServicenewSingleExecutorService()static java.util.concurrent.ExecutorServicenewSingleExecutorService(java.util.concurrent.ThreadFactory threadFactory)static java.util.concurrent.ScheduledExecutorServicenewSingleScheduledExecutorService(java.util.concurrent.ThreadFactory threadFactory)
-
-
-
方法详细资料
-
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)
-
-