FAQ : Questions About Jobs
Questions About Jobs
How can I control the instantiation of Jobs?
See org.quartz.spi.JobFactory and the org.quartz.Scheduler.setJobFactory( ) method.
How do I keep a Job from being removed after it completes?
Set the property JobDetail.setDurability(true). This instructs Quartz not to delete the job when it becomes an "orphan" (when the job no longer has a Trigger referencing it).
How do I keep a Job from firing concurrently?
Make the job class implement StatefulJob rather than Job. Read the Javadoc for StatefulJob for more information.
How do I stop a Job that is currently executing?
See the org.quartz.InterruptableJob interface, and the Scheduler.interrupt(String, String) method.
Copyright © 2010-2016 Software AG, Darmstadt, Germany.

Product Logo |   Feedback