public class DefaultGlobalThreadPoolPluginManager extends Object implements GlobalThreadPoolPluginManager
GlobalThreadPoolPluginManager.| 构造器和说明 |
|---|
DefaultGlobalThreadPoolPluginManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
ThreadPoolPluginSupport |
cancelManagement(String threadPoolId)
Cancel the management of the specified
ThreadPoolPluginSupport. |
ThreadPoolPlugin |
disableThreadPoolPlugin(String pluginId)
Disable
ThreadPoolPlugin for all ThreadPoolPluginSupport,
after action, newly registered support will not get this registrar. |
ThreadPoolPluginRegistrar |
disableThreadPoolPluginRegistrar(String registrarId)
Unable
ThreadPoolPluginRegistrar, newly registered support will not get this registrar. |
void |
doRegister(@NonNull ThreadPoolPluginSupport support)
Synchronize all enabled plugins and registrars in the current manager to the
ThreadPoolPluginSupport
whether the support has been managed by the current manager. |
boolean |
enableThreadPoolPlugin(@NonNull ThreadPoolPlugin plugin)
Enable plugin for all
ThreadPoolPluginSupport,
after action, newly registered support will also get this plugin. |
boolean |
enableThreadPoolPluginRegistrar(@NonNull ThreadPoolPluginRegistrar registrar)
Enable registrar, then apply to all registered
ThreadPoolPluginSupport,
after action, newly registered support will also get this registrar. |
Collection<ThreadPoolPluginRegistrar> |
getAllEnableThreadPoolPluginRegistrar()
Get all enable
ThreadPoolPluginRegistrar. |
Collection<ThreadPoolPlugin> |
getAllEnableThreadPoolPlugins()
Get all enable
ThreadPoolPlugin. |
Collection<ThreadPoolPluginSupport> |
getAllManagedThreadPoolPluginSupports()
Get all registered
ThreadPoolPluginSupport |
@Nullable ThreadPoolPluginSupport |
getManagedThreadPoolPluginSupport(String threadPoolId)
Get registered
ThreadPoolPluginSupport. |
boolean |
registerThreadPoolPluginSupport(@NonNull ThreadPoolPluginSupport support)
Synchronize all enabled plugins and registrars
in the current manager to the
ThreadPoolPluginSupport if the support has not been managed before,
After that, this support will be synchronized with the plug-in and registrar status in the manager. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllPluginsFromManagers, getPluginsFromManagers, getPluginsOfTypeFromManagers, unregisterForAllManagersgetIdpublic void doRegister(@NonNull
@NonNull ThreadPoolPluginSupport support)
ThreadPoolPluginSupport
whether the support has been managed by the current manager.
After that, the support will not be synchronized with the plug-in and registrar states in the manager.doRegister 在接口中 GlobalThreadPoolPluginManagerdoRegister 在接口中 ThreadPoolPluginRegistrarsupport - thread pool plugin manager delegateregisterThreadPoolPluginSupport(cn.hippo4j.core.plugin.manager.ThreadPoolPluginSupport)public boolean registerThreadPoolPluginSupport(@NonNull
@NonNull ThreadPoolPluginSupport support)
ThreadPoolPluginSupport if the support has not been managed before,
After that, this support will be synchronized with the plug-in and registrar status in the manager.registerThreadPoolPluginSupport 在接口中 GlobalThreadPoolPluginManagersupport - thread pool plugin manager supportdoRegister(cn.hippo4j.core.plugin.manager.ThreadPoolPluginSupport)public ThreadPoolPluginSupport cancelManagement(String threadPoolId)
ThreadPoolPluginSupport.cancelManagement 在接口中 GlobalThreadPoolPluginManagerthreadPoolId - thread pool idThreadPoolPluginSupportpublic @Nullable ThreadPoolPluginSupport getManagedThreadPoolPluginSupport(String threadPoolId)
ThreadPoolPluginSupport.getManagedThreadPoolPluginSupport 在接口中 GlobalThreadPoolPluginManagerthreadPoolId - thread-pool idpublic Collection<ThreadPoolPluginSupport> getAllManagedThreadPoolPluginSupports()
ThreadPoolPluginSupportgetAllManagedThreadPoolPluginSupports 在接口中 GlobalThreadPoolPluginManagerThreadPoolPluginSupportpublic boolean enableThreadPoolPlugin(@NonNull
@NonNull ThreadPoolPlugin plugin)
ThreadPoolPluginSupport,
after action, newly registered support will also get this plugin.enableThreadPoolPlugin 在接口中 GlobalThreadPoolPluginManagerplugin - pluginpublic Collection<ThreadPoolPlugin> getAllEnableThreadPoolPlugins()
ThreadPoolPlugin.getAllEnableThreadPoolPlugins 在接口中 GlobalThreadPoolPluginManagerThreadPoolPluginpublic ThreadPoolPlugin disableThreadPoolPlugin(String pluginId)
ThreadPoolPlugin for all ThreadPoolPluginSupport,
after action, newly registered support will not get this registrar.disableThreadPoolPlugin 在接口中 GlobalThreadPoolPluginManagerpluginId - plugin idThreadPoolPlugin if enable, null otherwisepublic boolean enableThreadPoolPluginRegistrar(@NonNull
@NonNull ThreadPoolPluginRegistrar registrar)
ThreadPoolPluginSupport,
after action, newly registered support will also get this registrar.enableThreadPoolPluginRegistrar 在接口中 GlobalThreadPoolPluginManagerregistrar - registrarpublic Collection<ThreadPoolPluginRegistrar> getAllEnableThreadPoolPluginRegistrar()
ThreadPoolPluginRegistrar.public ThreadPoolPluginRegistrar disableThreadPoolPluginRegistrar(String registrarId)
ThreadPoolPluginRegistrar, newly registered support will not get this registrar.disableThreadPoolPluginRegistrar 在接口中 GlobalThreadPoolPluginManagerregistrarId - registrar idThreadPoolPluginRegistrar if enable, null otherwiseCopyright © 2022. All rights reserved.