Package 

Class SchedulingConfig

  • All Implemented Interfaces:

    @Configuration()@ConditionalOnProperty(value = {"app.scheduling.enabled"}, havingValue = "true", matchIfMissing = true)@ConfigurationProperties(value = "app.scheduling")@Role(value = 2) 
    public final class SchedulingConfig
    
                        

    Configure scheduling so that thread pool size is same as number of @Scheduled tasks

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Boolean enabled
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean getEnabled()
      final Unit setEnabled(Boolean enabled)
      final ThreadPoolTaskScheduler scheduler()
      final <ERROR CLASS> taskRegistrar(ThreadPoolTaskScheduler scheduler)
      final ScheduledAnnotationBeanPostProcessor scheduledAnnotationProcessor(@Lazy() ThreadPoolTaskScheduler scheduler, @Lazy() ScheduledTaskRegistrar taskRegistrar)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchedulingConfig

        SchedulingConfig()
    • Method Detail

      • 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)