My requirement is that, a java function has to run at every fixed intervals soon after the server starts
- To begin with, you can start using java.util.Timer. Here is a good link on usage of Timer class.
- Using quartz scheduler is always a better option, but Timer can be a quick way to start off with. You can find some help to start using Quartz Scheduler in Java
- Alternatively, you can also opt for ScheduledExecutorService in java. I would prefer this option over
java.util.Timer