@Configuration
@EnableScheduling
@EnableConfigurationProperties(value={TasksExecutorPoolProperties.class,TasksSchedulerPoolProperties.class})
public class TasksAutoConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
TasksAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.task.AsyncTaskExecutor |
genieAsyncTaskExecutor(TasksExecutorPoolProperties tasksExecutorPoolProperties)
Get a task executor for executing tasks asynchronously that don't need to be scheduled at a recurring rate.
|
org.springframework.core.task.SyncTaskExecutor |
genieSyncTaskExecutor()
Synchronous task executor.
|
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
genieTaskScheduler(TasksSchedulerPoolProperties tasksSchedulerPoolProperties)
Get a task scheduler.
|
org.apache.commons.exec.Executor |
processExecutor()
Get an
Executor to use for executing processes from tasks. |
@Bean @ConditionalOnMissingBean(value=org.apache.commons.exec.Executor.class) public org.apache.commons.exec.Executor processExecutor()
Executor to use for executing processes from tasks.@Bean @ConditionalOnMissingBean(name="genieTaskScheduler") public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler genieTaskScheduler(TasksSchedulerPoolProperties tasksSchedulerPoolProperties)
tasksSchedulerPoolProperties - The properties regarding the thread pool to use for task scheduling@Bean @ConditionalOnMissingBean(name="genieAsyncTaskExecutor") public org.springframework.core.task.AsyncTaskExecutor genieAsyncTaskExecutor(TasksExecutorPoolProperties tasksExecutorPoolProperties)
tasksExecutorPoolProperties - The properties for the task executor thread pool@Bean @ConditionalOnMissingBean(name="genieSyncTaskExecutor") public org.springframework.core.task.SyncTaskExecutor genieSyncTaskExecutor()