开发者

Quartz string for a schedule which includes execution minute as well

I am trying to construct a quartz string for below schedule. Can some one help me in getting thi开发者_JS百科s done?

for every 3 minutes between 9:15 to 23:59 during Monday to Friday

Thanks in Advance


This can be done with SimpleTrigger (every 3 minutes). You just need to restrict the time and day with an ICalendar. Adding a DailyCalendar (09:15-23:59) and a WeeklyCalendar (Mon-Fri) will give you needed exclusions (example times would be inverted of course).

You could also achieve this with CronTrigger if you'd use DailyCalendar to help restrict the hour range.


I've not tred Marko's suggestions, I've already created my own mechanism to parse these string and convert it into cron expression. I will send this to quartz whenever I find time

Thanks for the help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜