Class ScheduledConfig

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

    @Configuration
    @EnableScheduling
    public class ScheduledConfig
    extends java.lang.Object
    implements org.springframework.scheduling.annotation.SchedulingConfigurer
    Scheduler 설정
    Version:
    1.0
    Author:
    Wooyoung Lee
    • Constructor Summary

      Constructors 
      Constructor Description
      ScheduledConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configureTasks​(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar)
      scheduler의 스레드 수를 2로 설정
      org.springframework.scheduling.TaskScheduler scheduler()
      scheduler 설정을 하고 리턴
      • Methods inherited from class java.lang.Object

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

      • ScheduledConfig

        public ScheduledConfig()
    • Method Detail

      • scheduler

        @Bean
        public org.springframework.scheduling.TaskScheduler scheduler()
        scheduler 설정을 하고 리턴
        Returns:
        scheduler 반환
      • configureTasks

        public void configureTasks​(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar)
        scheduler의 스레드 수를 2로 설정
        Specified by:
        configureTasks in interface org.springframework.scheduling.annotation.SchedulingConfigurer
        Parameters:
        taskRegistrar - ScheduledTaskRegistrar