类 ThreadPoolManager
java.lang.Object
com.alibaba.nacos.common.executor.ThreadPoolManager
// TODO Access Metric.
For unified management of thread pool resources, the consumer can simply call the register method to register(String, String, ExecutorService) the thread pool that needs to be included in the life
cycle management of the resource
- 作者:
- liaochuntao
-
方法概要
修饰符和类型方法说明voidderegister(String namespace, String group)Cancel the uniform lifecycle management for all threads under this resource.voidderegister(String namespace, String group, ExecutorService executor)Undoing the uniform lifecycle management ofExecutorServiceunder this resource.voidDestroys all thread pool resources under this namespace.voidThis namespace destroys all thread pool resources under the grouping.static ThreadPoolManagervoidregister(String namespace, String group, ExecutorService executor)Register the thread pool resources with the resource manager.static voidshutdown()Shutdown thread pool manager.
-
方法详细资料
-
getInstance
-
register
Register the thread pool resources with the resource manager.- 参数:
namespace- namespace namegroup- group nameexecutor-ExecutorService
-
deregister
Cancel the uniform lifecycle management for all threads under this resource.- 参数:
namespace- namespace namegroup- group name
-
deregister
Undoing the uniform lifecycle management ofExecutorServiceunder this resource.- 参数:
namespace- namespace namegroup- group nameexecutor-ExecutorService
-
destroy
Destroys all thread pool resources under this namespace.- 参数:
namespace- namespace
-
destroy
This namespace destroys all thread pool resources under the grouping.- 参数:
namespace- namespacegroup- group
-
shutdown
public static void shutdown()Shutdown thread pool manager.
-