I have multiple schedulers in multiple classes annotated with @Scheduled annotation with cron expression like:
1) @Scheduled(cron = "0 * * * * ?")
public void doSomething1()
2) @Scheduled(cron = "0 0/5 * * * *")
public void doSomething2()
Now i have a requirement where in i will get the cron expression from UI. and I have to reschedule the existing schedulers according to the expressions received from UI. I will be storing the values in DB.
I tried googling but did not get the solution.
Can you please suggest best approach for achieving this.