public class DynamicThreadPoolWrapper extends Object implements org.springframework.beans.factory.DisposableBean
| 构造器和说明 |
|---|
DynamicThreadPoolWrapper(String threadPoolId)
首选服务端线程池, 为空使用默认线程池
CommonDynamicThreadPool.getInstance(String) |
DynamicThreadPoolWrapper(String threadPoolId,
ThreadPoolExecutor threadPoolExecutor)
首选服务端线程池, 为空使用 threadPoolExecutor.
|
public DynamicThreadPoolWrapper(String threadPoolId)
CommonDynamicThreadPool.getInstance(String)threadPoolId - public DynamicThreadPoolWrapper(String threadPoolId, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - threadPoolExecutor - public void execute(Runnable command)
command - Copyright © 2021. All rights reserved.