Class TaskSchedulingAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration
@ConditionalOnClass(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.class) @Configuration @EnableConfigurationProperties(TaskSchedulingProperties.class) public class TaskSchedulingAutoConfiguration extends Object
Auto-configuration
forTaskScheduler
.- Since:
- 2.1.0
Constructor Summary
Constructors Constructor Description TaskSchedulingAutoConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
taskScheduler(org.springframework.boot.task.TaskSchedulerBuilder builder)
org.springframework.boot.task.TaskSchedulerBuilder
taskSchedulerBuilder(TaskSchedulingProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.task.TaskSchedulerCustomizer> taskSchedulerCustomizers)
Constructor Detail
TaskSchedulingAutoConfiguration
public TaskSchedulingAutoConfiguration()
Method Detail
taskScheduler
@Bean @ConditionalOnBean(name="org.springframework.context.annotation.internalScheduledAnnotationProcessor") @ConditionalOnMissingBean({org.springframework.scheduling.annotation.SchedulingConfigurer.class,org.springframework.scheduling.TaskScheduler.class,java.util.concurrent.ScheduledExecutorService.class}) public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler(org.springframework.boot.task.TaskSchedulerBuilder builder)
taskSchedulerBuilder
@Bean @ConditionalOnMissingBean public org.springframework.boot.task.TaskSchedulerBuilder taskSchedulerBuilder(TaskSchedulingProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.task.TaskSchedulerCustomizer> taskSchedulerCustomizers)