Search in sources :

Example 1 with MDCCleanerThreadPoolTaskScheduler

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;
}
Also used : MDCCleanerThreadPoolTaskScheduler(com.sequenceiq.cloudbreak.concurrent.MDCCleanerThreadPoolTaskScheduler) MDCCleanerThreadPoolTaskScheduler(com.sequenceiq.cloudbreak.concurrent.MDCCleanerThreadPoolTaskScheduler) ThreadPoolTaskScheduler(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler) Bean(org.springframework.context.annotation.Bean)

Aggregations

MDCCleanerThreadPoolTaskScheduler (com.sequenceiq.cloudbreak.concurrent.MDCCleanerThreadPoolTaskScheduler)1 Bean (org.springframework.context.annotation.Bean)1 ThreadPoolTaskScheduler (org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler)1