类 ExecutorFactory
java.lang.Object
com.alibaba.nacos.common.executor.ExecutorFactory
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 ThreadPoolExecutornewCustomerThreadExecutor(int coreThreads, int maxThreads, long keepAliveTimeMs, ThreadFactory threadFactory)static ExecutorServicenewFixedExecutorService(int nThreads)static ExecutorServicenewFixedExecutorService(int nThreads, ThreadFactory threadFactory)static ScheduledExecutorServicenewScheduledExecutorService(int nThreads, ThreadFactory threadFactory)static ExecutorServicestatic ExecutorServicenewSingleExecutorService(ThreadFactory threadFactory)static ScheduledExecutorServicenewSingleScheduledExecutorService(ThreadFactory threadFactory)
-
构造器详细资料
-
ExecutorFactory
public ExecutorFactory()
-
-
方法详细资料
-
newSingleExecutorService
-
newSingleExecutorService
-
newFixedExecutorService
-
newFixedExecutorService
-
newSingleScheduledExecutorService
public static ScheduledExecutorService newSingleScheduledExecutorService(ThreadFactory threadFactory) -
newScheduledExecutorService
public static ScheduledExecutorService newScheduledExecutorService(int nThreads, ThreadFactory threadFactory) -
newCustomerThreadExecutor
public static ThreadPoolExecutor newCustomerThreadExecutor(int coreThreads, int maxThreads, long keepAliveTimeMs, ThreadFactory threadFactory)
-