public interface DynamicThreadPoolAdapter
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
match(Object executor)
Check if the object contains thread pool information.
|
void |
replace(Object executor,
Executor dynamicThreadPoolExecutor)
If the
match(Object) conditions are met,
the thread pool is replaced with a dynamic thread pool. |
DynamicThreadPoolExecutor |
unwrap(Object executor)
Get the dynamic thread pool reference in the object.
|
boolean match(Object executor)
executor - objects where there may be instances
of dynamic thread poolsDynamicThreadPoolExecutor unwrap(Object executor)
executor - objects where there may be instances
of dynamic thread poolsvoid replace(Object executor, Executor dynamicThreadPoolExecutor)
match(Object) conditions are met,
the thread pool is replaced with a dynamic thread pool.executor - objects where there may be instances
of dynamic thread poolsdynamicThreadPoolExecutor - dynamic thread-pool executorCopyright © 2022. All rights reserved.