|
|
|
@ -16,9 +16,9 @@ public class TaskAsyncThreadPoolConfig { |
|
|
|
@Bean(name = "taskInternalExecutor") |
|
|
|
public Executor taskInternalExecutor() { |
|
|
|
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); |
|
|
|
executor.setCorePoolSize(1); |
|
|
|
executor.setMaxPoolSize(5); |
|
|
|
executor.setQueueCapacity(20); |
|
|
|
executor.setCorePoolSize(4); |
|
|
|
executor.setMaxPoolSize(18); |
|
|
|
executor.setQueueCapacity(50); |
|
|
|
executor.setThreadNamePrefix("task-init-"); |
|
|
|
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); |
|
|
|
executor.initialize(); |
|
|
|
|