Class TaskConfig


  • @Configuration
    @EnableConfigurationProperties(TaskConfigProperties.class)
    @EnableAsync
    public class TaskConfig
    extends Object
    Class used to launch initial load treads
    • Constructor Detail

      • TaskConfig

        public TaskConfig​(TaskConfigProperties properties)
        Executor task config constructor
        Parameters:
        properties - Task executor configuration properties
    • Method Detail

      • getContextAwareTaskExecutor

        @Bean("threadPoolTaskExecutor")
        public ContextAwarePoolExecutor getContextAwareTaskExecutor​(AweMDCTaskDecorator aweMDCTaskDecorator)
        Returns the asynchronous executor task
        Parameters:
        aweMDCTaskDecorator - AWE task decorator
        Returns:
        Thread pool executor bean
      • getHelpContextAwareTaskExecutor

        @Bean("threadHelpPoolTaskExecutor")
        public ContextAwarePoolExecutor getHelpContextAwareTaskExecutor​(AweMDCTaskDecorator aweMDCTaskDecorator)
        Returns the asynchronous executor task
        Parameters:
        aweMDCTaskDecorator - AWE task decorator
        Returns:
        Thread pool executor bean
      • getContextlessTaskExecutor

        @Bean("contextlessTaskExecutor")
        public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor getContextlessTaskExecutor()
        Returns the asynchronous executor task
        Returns:
        Thread pool executor bean