Package com.almis.awe.autoconfigure
Class TaskConfig
java.lang.Object
com.almis.awe.autoconfigure.TaskConfig
@Configuration
@EnableConfigurationProperties(TaskConfigProperties.class)
@EnableAsync
public class TaskConfig
extends Object
Class used to launch initial load treads
-
Constructor Summary
ConstructorDescriptionTaskConfig
(TaskConfigProperties properties) Executor task config constructor -
Method Summary
Modifier and TypeMethodDescriptiongetContextAwareTaskExecutor
(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor taskorg.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
Returns the asynchronous executor taskgetHelpContextAwareTaskExecutor
(AweMDCTaskDecorator aweMDCTaskDecorator) Returns the asynchronous executor task
-
Constructor Details
-
TaskConfig
Executor task config constructor- Parameters:
properties
- Task executor configuration properties
-
-
Method Details
-
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
-