类 DevThreadManager

java.lang.Object
dev.utils.common.thread.DevThreadManager

public final class DevThreadManager extends Object
detail: 线程池管理工具类
作者:
Ttt
  • 方法详细资料

    • getInstance

      public static DevThreadPool getInstance(int threadNumber)
      获取 DevThreadManager 实例
      参数:
      threadNumber - 线程数量
      返回:
      DevThreadPool
    • getInstance

      public static DevThreadPool getInstance(String key)
      获取 DevThreadManager 实例
      参数:
      key - 线程配置 key DevThreadPool.DevThreadPoolType or int-Integer
      返回:
      DevThreadPool
    • initConfig

      public static void initConfig(Map<String,Object> mapConfigs)
      初始化配置信息
      参数:
      mapConfigs - 线程配置信息 Map
    • putConfig

      public static void putConfig(String key, Object value)
      添加配置信息
      参数:
      key - 线程配置 key
      value - 线程配置 value
    • removeConfig

      public static void removeConfig(String key)
      移除配置信息
      参数:
      key - 线程配置 key