public class DynamicThreadPoolAdapterChoose extends Object
| 构造器和说明 |
|---|
DynamicThreadPoolAdapterChoose() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
match(Object executor)
Check if the object contains thread pool information.
|
static void |
replace(Object executor,
Executor dynamicThreadPoolExecutor)
If the
DynamicThreadPoolAdapter.match(Object) conditions are met,
the thread pool is replaced with a dynamic thread pool. |
static DynamicThreadPoolExecutor |
unwrap(Object executor)
Get the dynamic thread pool reference in the object.
|
public static boolean match(Object executor)
executor - objects where there may be instances
of dynamic thread poolspublic static DynamicThreadPoolExecutor unwrap(Object executor)
executor - objects where there may be instances
of dynamic thread poolspublic static void replace(Object executor, Executor dynamicThreadPoolExecutor)
DynamicThreadPoolAdapter.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.