Giacomo Pati wrote:
please look at the other thread (Cron Block). I added an addPeriodicJob() method to your scheduler to allow periodic invocation (in seconds).
With that change I'm able to convert to your scheduler and we can forget the cornerstone one (and 5 jar files...)
Why didnd you use a addJob(...., "* * * * * *", ...) which will be triggered each second?
Yes, this is easy for each second, but what when I want to schedule the job, let's say every 5 seconds or every 80 minutes?
According to cron specs:
"* * * * * */5" -> every five seconds "* * * * */80 *" -> every 80 minutes
Can it handle this?
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin