| 程序包 | 说明 |
|---|---|
| cn.hippo4j.core.plugin | |
| cn.hippo4j.core.plugin.impl | |
| cn.hippo4j.core.plugin.manager |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ExecuteAwarePlugin
Callback during task execution.
|
interface |
RejectedAwarePlugin
Callback when task is rejected.
|
interface |
ShutdownAwarePlugin
Callback before thread-pool shutdown.
|
interface |
TaskAwarePlugin
Callback during task submit in thread-pool.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractTaskTimerPlugin
An abstract task execution time recording plugin
for thread-safe statistics the execution time of tasks.
|
class |
TaskDecoratorPlugin
Decorate tasks when they are submitted to thread-pool.
|
class |
TaskRejectCountRecordPlugin
Record the number of tasks rejected by the thread pool.
|
class |
TaskRejectNotifyAlarmPlugin
Send alert notification when a task is rejected.
|
class |
TaskTimeoutNotifyAlarmPlugin
Send alarm notification when the execution time exceeds the threshold.
|
class |
TaskTimeRecordPlugin
Record task execution time indicator.
|
class |
ThreadPoolExecutorShutdownPlugin
After the thread pool calls
ThreadPoolExecutor.shutdown() or ThreadPoolExecutor.shutdownNow(). |
| 限定符和类型 | 方法和说明 |
|---|---|
default <A extends ThreadPoolPlugin> |
ThreadPoolPluginManager.getAllPluginsOfType(Class<A> pluginType)
Get all plugins of type.
|
default <A extends ThreadPoolPlugin> |
ThreadPoolPluginSupport.getPlugin(String pluginId)
Get
ThreadPoolPlugin. |
<A extends ThreadPoolPlugin> |
ThreadPoolPluginManager.getPlugin(String pluginId)
Get
ThreadPoolPlugin. |
<A extends ThreadPoolPlugin> |
EmptyThreadPoolPluginManager.getPlugin(String pluginId)
Get
ThreadPoolPlugin. |
<A extends ThreadPoolPlugin> |
DefaultThreadPoolPluginManager.getPlugin(String pluginId)
Get
ThreadPoolPlugin. |
default <A extends ThreadPoolPlugin> |
ThreadPoolPluginManager.getPluginOfType(String pluginId,
Class<A> pluginType)
Get plugin of type.
|
default <A extends ThreadPoolPlugin> |
GlobalThreadPoolPluginManager.getPluginsOfTypeFromManagers(Class<A> pluginType)
Get plugins of type from registered
ThreadPoolPluginSupport. |
| 限定符和类型 | 方法和说明 |
|---|---|
ThreadPoolPlugin |
GlobalThreadPoolPluginManager.disableThreadPoolPlugin(String pluginId)
Disable
ThreadPoolPlugin for all ThreadPoolPluginSupport,
after action, newly registered support will not get this registrar. |
ThreadPoolPlugin |
DefaultGlobalThreadPoolPluginManager.disableThreadPoolPlugin(String pluginId)
Disable
ThreadPoolPlugin for all ThreadPoolPluginSupport,
after action, newly registered support will not get this registrar. |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<ThreadPoolPlugin> |
GlobalThreadPoolPluginManager.getAllEnableThreadPoolPlugins()
Get all enable
ThreadPoolPlugin. |
Collection<ThreadPoolPlugin> |
DefaultGlobalThreadPoolPluginManager.getAllEnableThreadPoolPlugins()
Get all enable
ThreadPoolPlugin. |
default Collection<ThreadPoolPlugin> |
ThreadPoolPluginSupport.getAllPlugins()
Get all registered plugins.
|
Collection<ThreadPoolPlugin> |
ThreadPoolPluginManager.getAllPlugins()
Get all registered plugins.
|
Collection<ThreadPoolPlugin> |
EmptyThreadPoolPluginManager.getAllPlugins()
Get all registered plugins.
|
Collection<ThreadPoolPlugin> |
DefaultThreadPoolPluginManager.getAllPlugins()
Get all registered plugins.
|
default Collection<ThreadPoolPlugin> |
GlobalThreadPoolPluginManager.getAllPluginsFromManagers()
Get all plugins from registered
ThreadPoolPluginSupport. |
default Collection<ThreadPoolPlugin> |
GlobalThreadPoolPluginManager.getPluginsFromManagers(String pluginId)
Get plugins by id from registered
ThreadPoolPluginSupport. |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
GlobalThreadPoolPluginManager.enableThreadPoolPlugin(ThreadPoolPlugin plugin)
Enable plugin for all
ThreadPoolPluginSupport,
after action, newly registered support will also get this plugin. |
boolean |
DefaultGlobalThreadPoolPluginManager.enableThreadPoolPlugin(@NonNull ThreadPoolPlugin plugin)
Enable plugin for all
ThreadPoolPluginSupport,
after action, newly registered support will also get this plugin. |
default void |
ThreadPoolPluginSupport.register(ThreadPoolPlugin plugin)
Register a
ThreadPoolPlugin |
void |
ThreadPoolPluginManager.register(ThreadPoolPlugin plugin)
Register a
ThreadPoolPlugin. |
void |
EmptyThreadPoolPluginManager.register(ThreadPoolPlugin plugin)
Register a
ThreadPoolPlugin |
void |
DefaultThreadPoolPluginManager.register(@NonNull ThreadPoolPlugin plugin)
Register a
ThreadPoolPlugin |
default boolean |
ThreadPoolPluginSupport.tryRegister(ThreadPoolPlugin plugin)
Register plugin if it's not registered.
|
boolean |
ThreadPoolPluginManager.tryRegister(ThreadPoolPlugin plugin)
Register plugin if it's not registered.
|
boolean |
EmptyThreadPoolPluginManager.tryRegister(ThreadPoolPlugin plugin)
Register plugin if it's not registered.
|
boolean |
DefaultThreadPoolPluginManager.tryRegister(ThreadPoolPlugin plugin)
Register plugin if it's not registered.
|
Copyright © 2022. All rights reserved.