@ConditionalOnClass(value=org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.class) @Configuration @EnableConfigurationProperties(value=TaskSchedulingProperties.class) @AutoConfigureAfter(value=TaskExecutionAutoConfiguration.class) public class TaskSchedulingAutoConfiguration extends Object
Auto-configuration
for TaskScheduler
.Constructor and Description |
---|
TaskSchedulingAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
taskScheduler(TaskSchedulerBuilder builder) |
TaskSchedulerBuilder |
taskSchedulerBuilder(TaskSchedulingProperties properties,
org.springframework.beans.factory.ObjectProvider<TaskSchedulerCustomizer> taskSchedulerCustomizers) |
@Bean @ConditionalOnBean(name="org.springframework.context.annotation.internalScheduledAnnotationProcessor") @ConditionalOnMissingBean(value={org.springframework.scheduling.annotation.SchedulingConfigurer.class,org.springframework.scheduling.TaskScheduler.class,java.util.concurrent.ScheduledExecutorService.class}) public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler(TaskSchedulerBuilder builder)
@Bean @ConditionalOnMissingBean public TaskSchedulerBuilder taskSchedulerBuilder(TaskSchedulingProperties properties, org.springframework.beans.factory.ObjectProvider<TaskSchedulerCustomizer> taskSchedulerCustomizers)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.