I am using Spring 3 annotation @Scheduled to create scheduled jobs on server. But i am confused about the parameters(cron, fixedDelay ,fixedRate) of @Scheduled annotation. Please explain the difference between these parameter and the situations in which I can use these parameters.
I am using Spring 3 annotation @Scheduled to create scheduled jobs on server. But
Share
I believe the difference among different options are made clear here. It depends on how you need to execute the task:
fixedRatemakes Spring run the task on periodic intervals even if the last invocation may be still running.fixedDelayspecifically controls the next execution time when the last execution finishes.cronis a feature originating from Unix cron utility and has various options based on your requirements.