When using the Spring 3.0 capability to annotate a scheduled task, I would like to set the fixedDelay as parameter from my configuration file, instead of hard-w
fixedDelay
You can use the @Scheduled annotation, but together with the cron parameter only:
@Scheduled
cron
@Scheduled(cron = "${yourConfiguration.cronExpression}")
Your 5 seconds interval could be expressed as "*/5 * * * * *". However as I understand you cannot provide less than 1 second precision.
"*/5 * * * * *"