public class GlobalThreadPoolManage extends Object
| 构造器和说明 |
|---|
GlobalThreadPoolManage() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ThreadPoolExecutor |
getExecutor(String threadPoolId)
Get the dynamic thread pool wrapper class.
|
static DynamicThreadPoolWrapper |
getExecutorService(String threadPoolId)
Get the dynamic thread pool wrapper class.
|
static ThreadPoolParameter |
getPoolParameter(String threadPoolId)
Get dynamic thread pool parameters.
|
static Integer |
getThreadPoolNum()
Get the number of dynamic thread pools.
|
static List<String> |
listThreadPoolId()
Get the dynamic thread pool identifier collection.
|
static void |
register(String threadPoolId,
ThreadPoolParameter threadPoolParameter,
DynamicThreadPoolWrapper executor)
Register dynamic thread pool wrapper and parameters.
|
static void |
registerPool(String threadPoolId,
DynamicThreadPoolWrapper executor)
Register dynamic thread pool.
|
static void |
registerPoolParameter(String threadPoolId,
ThreadPoolParameter poolParameter)
Register dynamic thread pool parameters.
|
public static DynamicThreadPoolWrapper getExecutorService(String threadPoolId)
threadPoolId - public static ThreadPoolExecutor getExecutor(String threadPoolId)
threadPoolId - public static ThreadPoolParameter getPoolParameter(String threadPoolId)
threadPoolId - public static void register(String threadPoolId, ThreadPoolParameter threadPoolParameter, DynamicThreadPoolWrapper executor)
threadPoolId - threadPoolParameter - executor - public static void registerPool(String threadPoolId, DynamicThreadPoolWrapper executor)
threadPoolId - executor - public static void registerPoolParameter(String threadPoolId, ThreadPoolParameter poolParameter)
threadPoolId - poolParameter - public static List<String> listThreadPoolId()
public static Integer getThreadPoolNum()
The data may be inaccurate when the project is initially launched because registration is done asynchronously.
Copyright © 2022. All rights reserved.