-
- All Implemented Interfaces:
@Configuration()@ConditionalOnProperty(value = {"app.scheduling.enabled"}, havingValue = "true", matchIfMissing = true)@ConfigurationProperties(value = "app.scheduling")@Role(value = 2) public final class SchedulingConfigConfigure scheduling so that thread pool size is same as number of
@Scheduledtasks
-
-
Constructor Summary
Constructors Constructor Description SchedulingConfig()
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)final ThreadPoolTaskSchedulerscheduler()final <ERROR CLASS>taskRegistrar(ThreadPoolTaskScheduler scheduler)final ScheduledAnnotationBeanPostProcessorscheduledAnnotationProcessor(@Lazy() ThreadPoolTaskScheduler scheduler, @Lazy() ScheduledTaskRegistrar taskRegistrar)-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
scheduler
@Bean() final ThreadPoolTaskScheduler scheduler()
-
taskRegistrar
@Bean() final <ERROR CLASS> taskRegistrar(ThreadPoolTaskScheduler scheduler)
-
scheduledAnnotationProcessor
@Bean()@Role(value = 2) final ScheduledAnnotationBeanPostProcessor scheduledAnnotationProcessor(@Lazy() ThreadPoolTaskScheduler scheduler, @Lazy() ScheduledTaskRegistrar taskRegistrar)
-
-
-
-