public interface GlobalThreadPoolPluginManager extends ThreadPoolPluginRegistrar
ThreadPoolPluginManager.
It is used to manage ThreadPoolPluginSupport in the global,
so that all managed ThreadPoolPluginSupport can be registered incrementally.| 限定符和类型 | 方法和说明 |
|---|---|
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(ThreadPoolPluginSupport support)
Synchronize all enabled plugins and registrars
in the current manager to the
ThreadPoolPluginSupport. |
boolean |
enableThreadPoolPlugin(ThreadPoolPlugin plugin)
Enable plugin for all
ThreadPoolPluginSupport,
after action, newly registered support will also get this plugin. |
boolean |
enableThreadPoolPluginRegistrar(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 |
default Collection<ThreadPoolPlugin> |
getAllPluginsFromManagers()
Get all plugins from registered
ThreadPoolPluginSupport. |
ThreadPoolPluginSupport |
getManagedThreadPoolPluginSupport(String threadPoolId)
Get registered
ThreadPoolPluginSupport. |
default Collection<ThreadPoolPlugin> |
getPluginsFromManagers(String pluginId)
Get plugins by id from registered
ThreadPoolPluginSupport. |
default <A extends ThreadPoolPlugin> |
getPluginsOfTypeFromManagers(Class<A> pluginType)
Get plugins of type from registered
ThreadPoolPluginSupport. |
boolean |
registerThreadPoolPluginSupport(ThreadPoolPluginSupport support)
Synchronize all enabled plugins and registrars
in the current manager to the
ThreadPoolPluginSupport,
After that, this support will be synchronized with the plug-in and registrar status in the manager. |
default void |
unregisterForAllManagers(String pluginId)
Unregister for all registered Managers
|
getIdvoid doRegister(ThreadPoolPluginSupport support)
ThreadPoolPluginSupport.
After that, the support will not be synchronized with the plug-in and registrar states in the manager.doRegister 在接口中 ThreadPoolPluginRegistrarsupport - thread pool plugin manager delegateregisterThreadPoolPluginSupport(cn.hippo4j.core.plugin.manager.ThreadPoolPluginSupport)boolean registerThreadPoolPluginSupport(ThreadPoolPluginSupport support)
ThreadPoolPluginSupport,
After that, this support will be synchronized with the plug-in and registrar status in the manager.support - thread pool plugin manager supportdoRegister(cn.hippo4j.core.plugin.manager.ThreadPoolPluginSupport)ThreadPoolPluginSupport cancelManagement(String threadPoolId)
ThreadPoolPluginSupport.threadPoolId - thread pool idThreadPoolPluginSupport if managed, null otherwiseThreadPoolPluginSupport getManagedThreadPoolPluginSupport(String threadPoolId)
ThreadPoolPluginSupport.threadPoolId - thread-pool idThreadPoolPluginSupport if managed, null otherwiseCollection<ThreadPoolPluginSupport> getAllManagedThreadPoolPluginSupports()
ThreadPoolPluginSupportThreadPoolPluginSupportboolean enableThreadPoolPlugin(ThreadPoolPlugin plugin)
ThreadPoolPluginSupport,
after action, newly registered support will also get this plugin.plugin - pluginCollection<ThreadPoolPlugin> getAllEnableThreadPoolPlugins()
ThreadPoolPlugin.ThreadPoolPluginThreadPoolPlugin disableThreadPoolPlugin(String pluginId)
ThreadPoolPlugin for all ThreadPoolPluginSupport,
after action, newly registered support will not get this registrar.pluginId - plugin idThreadPoolPlugin if enable, null otherwisedefault Collection<ThreadPoolPlugin> getAllPluginsFromManagers()
ThreadPoolPluginSupport.default <A extends ThreadPoolPlugin> Collection<A> getPluginsOfTypeFromManagers(Class<A> pluginType)
ThreadPoolPluginSupport.pluginType - plugin typedefault Collection<ThreadPoolPlugin> getPluginsFromManagers(String pluginId)
ThreadPoolPluginSupport.pluginId - plugin iddefault void unregisterForAllManagers(String pluginId)
pluginId - plugin idboolean enableThreadPoolPluginRegistrar(ThreadPoolPluginRegistrar registrar)
ThreadPoolPluginSupport,
after action, newly registered support will also get this registrar.registrar - registrarCollection<ThreadPoolPluginRegistrar> getAllEnableThreadPoolPluginRegistrar()
ThreadPoolPluginRegistrar.ThreadPoolPluginRegistrar.ThreadPoolPluginRegistrar disableThreadPoolPluginRegistrar(String registrarId)
ThreadPoolPluginRegistrar, newly registered support will not get this registrar.registrarId - registrar idThreadPoolPluginRegistrar if enable, null otherwiseCopyright © 2022. All rights reserved.