Minor Update
This commit is contained in:
parent
e87bad0d87
commit
ad872d422f
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue