mte01
asked on
CronTrigger Expression
Hey experts,
Using the org.quartz.CronTrigger class (whose doc. is found at: http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html). I have two questions:
1- If I want an event scheduled to occur every 15 minutes, would that be its expression??
"0 0/5 * * * ?"
2- If I want an event scheduled to occur every 15 minutes, starting after 20 minutes from now, what would be its expression??
Using the org.quartz.CronTrigger class (whose doc. is found at: http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html). I have two questions:
1- If I want an event scheduled to occur every 15 minutes, would that be its expression??
"0 0/5 * * * ?"
2- If I want an event scheduled to occur every 15 minutes, starting after 20 minutes from now, what would be its expression??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>sciuriware
1) Isn't my expression also correct??
2) After thinking of it, it's not worth implementing
>>objects
2) I ned to conform to what has been used in the project before....(they have used the Cron Trigger), so it's not worth implementing...
1) Isn't my expression also correct??
2) After thinking of it, it's not worth implementing
>>objects
2) I ned to conform to what has been used in the project before....(they have used the Cron Trigger), so it's not worth implementing...
> (they have used the Cron Trigger)
so how did they use it?
so how did they use it?
ASKER
>>objects
They used CronTrigger, but they haven't used this "starting after 20 minutes from now" requirement, and now that I see that it can't be implemented using CronTrigger, I prefer that I don't provide this option at all (seeing that it's not that important) instead of doing a whole new implementation of SimpleTrigger (& thus changing the design of DB tables that already have fields for stored Cron Expressions).
They used CronTrigger, but they haven't used this "starting after 20 minutes from now" requirement, and now that I see that it can't be implemented using CronTrigger, I prefer that I don't provide this option at all (seeing that it's not that important) instead of doing a whole new implementation of SimpleTrigger (& thus changing the design of DB tables that already have fields for stored Cron Expressions).
fine scheduling could be done from your own JAVA program,
which should run in the background.
;JOOP!