public class ThreadPoolTaskExecutorAdapter extends Object implements DynamicThreadPoolAdapter
| 构造器和说明 |
|---|
ThreadPoolTaskExecutorAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
match(Object executor)
Check if the object contains thread pool information.
|
void |
replace(Object executor,
Executor dynamicThreadPoolExecutor)
If the
DynamicThreadPoolAdapter.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.
|
public boolean match(Object executor)
DynamicThreadPoolAdaptermatch 在接口中 DynamicThreadPoolAdapterexecutor - objects where there may be instances
of dynamic thread poolspublic DynamicThreadPoolExecutor unwrap(Object executor)
DynamicThreadPoolAdapterunwrap 在接口中 DynamicThreadPoolAdapterexecutor - objects where there may be instances
of dynamic thread poolspublic void replace(Object executor, Executor dynamicThreadPoolExecutor)
DynamicThreadPoolAdapterDynamicThreadPoolAdapter.match(Object) conditions are met,
the thread pool is replaced with a dynamic thread pool.replace 在接口中 DynamicThreadPoolAdapterexecutor - objects where there may be instances
of dynamic thread poolsdynamicThreadPoolExecutor - dynamic thread-pool executorCopyright © 2022. All rights reserved.