Package com.arms.config
Class DynamicSchedulerConfig
- java.lang.Object
-
- com.arms.config.DynamicSchedulerConfig
-
- All Implemented Interfaces:
org.springframework.scheduling.annotation.SchedulingConfigurer
@Configuration @EnableScheduling public class DynamicSchedulerConfig extends java.lang.Object implements org.springframework.scheduling.annotation.SchedulingConfigurer
-
-
Constructor Summary
Constructors Constructor Description DynamicSchedulerConfig(ScheduleMapProvider scheduleMapProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureTasks(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar)voidonRefresh()voidrefreshSchedules()org.springframework.scheduling.TaskSchedulertaskScheduler()
-
-
-
Constructor Detail
-
DynamicSchedulerConfig
public DynamicSchedulerConfig(ScheduleMapProvider scheduleMapProvider)
-
-
Method Detail
-
taskScheduler
@Bean(name="dynamicTaskScheduler") public org.springframework.scheduling.TaskScheduler taskScheduler()
-
configureTasks
public void configureTasks(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar)
- Specified by:
configureTasksin interfaceorg.springframework.scheduling.annotation.SchedulingConfigurer
-
onRefresh
@EventListener(org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent.class) public void onRefresh() throws java.lang.Exception- Throws:
java.lang.Exception
-
refreshSchedules
public void refreshSchedules() throws java.lang.Exception- Throws:
java.lang.Exception
-
-