I've created a scheduler class and wrote the configuration and run() method for scheduler. I need a System.out at intervals based on the cron-expression. How can I set the scheduler interval to the cron-expression and make it run?
Reading through the Scheduler API instead of whiteboard almost all the methods was found deprecated. What's the alternate for that?
This is a builder based approach which allows us to add more options in the future without the need to add more methods to the scheduler In addition, the methods now return a boolean rather than throwing an exception And the number of possibilities with the new api is reduced as some of the old methods have some overlap which now could be reduced down to 5 ways.