类 ExecutorFactory.Managed
java.lang.Object
com.alibaba.nacos.common.executor.ExecutorFactory.Managed
- 封闭类:
- ExecutorFactory
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ThreadPoolExecutornewCustomerThreadExecutor(String group, int coreThreads, int maxThreads, long keepAliveTimeMs, ThreadFactory threadFactory)Create a new custom executor service and register to manager.static ExecutorServicenewFixedExecutorService(String group, int nThreads)Create a new fixed executor service with default thread factory and register to manager.static ExecutorServicenewFixedExecutorService(String group, int nThreads, ThreadFactory threadFactory)Create a new fixed executor service with input thread factory and register to manager.static ScheduledExecutorServicenewScheduledExecutorService(String group, int nThreads, ThreadFactory threadFactory)Create a new scheduled executor service with input thread factory and register to manager.static ExecutorServicenewSingleExecutorService(String group)Create a new single executor service with default thread factory and register to manager.static ExecutorServicenewSingleExecutorService(String group, ThreadFactory threadFactory)Create a new single executor service with input thread factory and register to manager.static ScheduledExecutorServicenewSingleScheduledExecutorService(String group, ThreadFactory threadFactory)Create a new single scheduled executor service with input thread factory and register to manager.
-
构造器详细资料
-
Managed
public Managed()
-
-
方法详细资料
-
newSingleExecutorService
Create a new single executor service with default thread factory and register to manager.- 参数:
group- group name- 返回:
- new single executor service
-
newSingleExecutorService
Create a new single executor service with input thread factory and register to manager.- 参数:
group- group namethreadFactory- thread factory- 返回:
- new single executor service
-
newFixedExecutorService
Create a new fixed executor service with default thread factory and register to manager.- 参数:
group- group namenThreads- thread number- 返回:
- new fixed executor service
-
newFixedExecutorService
public static ExecutorService newFixedExecutorService(String group, int nThreads, ThreadFactory threadFactory)Create a new fixed executor service with input thread factory and register to manager.- 参数:
group- group namenThreads- thread numberthreadFactory- thread factory- 返回:
- new fixed executor service
-
newSingleScheduledExecutorService
public static ScheduledExecutorService newSingleScheduledExecutorService(String group, ThreadFactory threadFactory)Create a new single scheduled executor service with input thread factory and register to manager.- 参数:
group- group namethreadFactory- thread factory- 返回:
- new single scheduled executor service
-
newScheduledExecutorService
public static ScheduledExecutorService newScheduledExecutorService(String group, int nThreads, ThreadFactory threadFactory)Create a new scheduled executor service with input thread factory and register to manager.- 参数:
group- group namenThreads- thread numberthreadFactory- thread factory- 返回:
- new scheduled executor service
-
newCustomerThreadExecutor
public static ThreadPoolExecutor newCustomerThreadExecutor(String group, int coreThreads, int maxThreads, long keepAliveTimeMs, ThreadFactory threadFactory)Create a new custom executor service and register to manager.- 参数:
group- group namecoreThreads- core thread numbermaxThreads- max thread numberkeepAliveTimeMs- keep alive time millisecondsthreadFactory- thread facotry- 返回:
- new custom executor service
-