'How to do rescheduling in springboot

I have a spring boot application which contains a scheduler that picks up file from my local.I want the scheduler to be rescheduled to an hour after if my local repository is empty.how can I do this dynamically..i am using cron expression for the same.Could someone please help on this



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source