Class SchedulerConfiguration

  • All Implemented Interfaces:
    org.springframework.scheduling.annotation.SchedulingConfigurer

    @Configuration
    public class SchedulerConfiguration
    extends Object
    implements org.springframework.scheduling.annotation.SchedulingConfigurer
    Configures the scheduler. Per default all @scheduled methods share a single thread. To provide a unique thread per @scheduled method, we configure here 10 threads for the @scheduled methods.
    • Constructor Detail

      • SchedulerConfiguration

        public SchedulerConfiguration()
    • Method Detail

      • configureTasks

        public void configureTasks​(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar)
        Specified by:
        configureTasks in interface org.springframework.scheduling.annotation.SchedulingConfigurer