views:

245

answers:

1

Lets say that I have a quartz trigger SimpleTrigger that fires every second and start time is set to 12:00:00 today. It seems that when I schedule that trigger at 12:00:10 then it fires immediately 10 times. Is there a way to avoid that kind of behaviour or should I just manually set start time to 12:00:10 before scheduling?

A: 

You may want to have a look at setMisfireInstruction() and choose the most suitable instruction supported by SimpleTrigger.

Mirko Nasato