public class SpringExecutorsFactory extends Object implements icu.etl.concurrent.ExecutorsFactory
| 构造器和说明 |
|---|
SpringExecutorsFactory(ExecutorService service)
线程池工厂
|
SpringExecutorsFactory(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor service)
线程池工厂
|
| 限定符和类型 | 方法和说明 |
|---|---|
ExecutorService |
create(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler) |
public SpringExecutorsFactory(ExecutorService service)
service - 线程池public SpringExecutorsFactory(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor service)
service - Springboot线程池public ExecutorService create(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
create 在接口中 icu.etl.concurrent.ExecutorsFactoryCopyright © 2023. All rights reserved.