public class GlobalThreadPoolManage extends Object
| 构造器和说明 |
|---|
GlobalThreadPoolManage() |
| 限定符和类型 | 方法和说明 |
|---|---|
static DynamicThreadPoolWrapper |
getExecutorService(String threadPoolId)
获取动态线程池包装类.
|
static PoolParameter |
getPoolParameter(String threadPoolId)
获取动态线程池参数.
|
static Integer |
getThreadPoolNum()
获取动态线程池数量.
|
static List<String> |
listThreadPoolId()
获取呀动态线程池标识集合.
|
static void |
register(String threadPoolId,
PoolParameter poolParameter,
DynamicThreadPoolWrapper executor)
注册动态线程池包装以及参数.
|
static void |
registerPool(String threadPoolId,
DynamicThreadPoolWrapper executor)
注册动态线程池.
|
static void |
registerPoolParameter(String threadPoolId,
PoolParameter poolParameter)
注册动态线程池参数.
|
public static DynamicThreadPoolWrapper getExecutorService(String threadPoolId)
threadPoolId - public static PoolParameter getPoolParameter(String threadPoolId)
threadPoolId - public static void register(String threadPoolId, PoolParameter poolParameter, DynamicThreadPoolWrapper executor)
threadPoolId - poolParameter - executor - public static void registerPool(String threadPoolId, DynamicThreadPoolWrapper executor)
threadPoolId - executor - public static void registerPoolParameter(String threadPoolId, PoolParameter poolParameter)
threadPoolId - poolParameter - public static Integer getThreadPoolNum()
Copyright © 2021. All rights reserved.