use of com.sequenceiq.cloudbreak.concurrent.MDCCleanerThreadPoolTaskScheduler in project cloudbreak by hortonworks.
the class AsyncConfig method taskScheduler.
@Bean
public TaskScheduler taskScheduler() {
ThreadPoolTaskScheduler threadPoolTaskScheduler = new MDCCleanerThreadPoolTaskScheduler();
threadPoolTaskScheduler.setPoolSize(TASK_SCHEDULER_POOL_SIZE);
threadPoolTaskScheduler.setThreadNamePrefix("scheduledExecutor-");
return threadPoolTaskScheduler;
}
Aggregations