v3.5.1发布

This commit is contained in:
xiongxiaoyang
2021-01-25 16:56:41 +08:00
parent c567e37423
commit 521142a792
4 changed files with 12 additions and 7 deletions

View File

@ -17,7 +17,7 @@ public class ThreadPoolConfig {
@Bean
public ThreadPoolExecutor threadPoolExecutor(ThreadPoolProperties properties){
return new ThreadPoolExecutor(properties.getCorePoolSize(),properties.getMaximumPoolSize(),properties.getKeepAliveTime()
, TimeUnit.MINUTES, new LinkedBlockingDeque<>(),new ThreadPoolExecutor.AbortPolicy());
, TimeUnit.SECONDS, new LinkedBlockingDeque<>(properties.getQueueSize()),new ThreadPoolExecutor.AbortPolicy());
}
}

View File

@ -16,6 +16,7 @@ public class ThreadPoolProperties {
private Integer corePoolSize;
private Integer maximumPoolSize;
private Long keepAliveTime;
private Integer queueSize;
}