Minor Update

This commit is contained in:
Giancarlo Panichi 2022-01-31 15:02:17 +01:00
parent e87bad0d87
commit ad872d422f
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import java.util.concurrent.Executor;
@EnableScheduling @EnableScheduling
public class AsyncConfiguration implements AsyncConfigurer { public class AsyncConfiguration implements AsyncConfigurer {
private final Logger log = LoggerFactory.getLogger(AsyncConfiguration.class); private final Logger logger = LoggerFactory.getLogger(AsyncConfiguration.class);
private final TaskExecutionProperties taskExecutionProperties; private final TaskExecutionProperties taskExecutionProperties;
@ -31,7 +31,7 @@ public class AsyncConfiguration implements AsyncConfigurer {
@Override @Override
@Bean(name = "taskExecutor") @Bean(name = "taskExecutor")
public Executor getAsyncExecutor() { public Executor getAsyncExecutor() {
log.debug("Creating Async Task Executor"); logger.debug("Creating Async Task Executor");
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(taskExecutionProperties.getPool().getCoreSize()); executor.setCorePoolSize(taskExecutionProperties.getPool().getCoreSize());
executor.setMaxPoolSize(taskExecutionProperties.getPool().getMaxSize()); executor.setMaxPoolSize(taskExecutionProperties.getPool().getMaxSize());