Class SchedulerTaskConfig
java.lang.Object
com.almis.awe.scheduler.autoconfigure.SchedulerTaskConfig
@Configuration
@EnableAsync
@EnableConfigurationProperties(SchedulerTaskConfigProperties.class)
public class SchedulerTaskConfig
extends Object
-
Constructor Summary
ConstructorDescriptionSchedulerTaskConfig
(SchedulerTaskConfigProperties schedulerTaskConfigProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
getSchedulerJobPoolExecutor
(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor taskorg.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
getSchedulerTaskPoolExecutor
(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor taskorg.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
getSchedulerTimeoutPoolExecutor
(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor task
-
Constructor Details
-
SchedulerTaskConfig
-
-
Method Details
-
getSchedulerTaskPoolExecutor
@Bean("schedulerTaskPool") public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor getSchedulerTaskPoolExecutor(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor task- Parameters:
aweMDCTaskDecorator
- AWE MDC task decorator- Returns:
- Thread pool executor bean
-
getSchedulerJobPoolExecutor
@Bean("schedulerJobPool") public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor getSchedulerJobPoolExecutor(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor task- Parameters:
aweMDCTaskDecorator
- AWE MDC task decorator- Returns:
- Thread pool executor bean
-
getSchedulerTimeoutPoolExecutor
@Bean("schedulerTimeoutPool") public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor getSchedulerTimeoutPoolExecutor(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor task- Parameters:
aweMDCTaskDecorator
- AWE MDC task decorator- Returns:
- Thread pool executor bean
-