SpringBoot has @Scheduled annotation for scheduling tasks. But it only works with fixed rates. In this tutorial I tried to show how to create our own scheduler for dynamic scheduling.
This repository created for my blog post on same topic: http://mbcoder.com/dynamic-task-scheduling-with-spring/