Package org.quartz.jobs
Interface Job
- All Known Subinterfaces:
InterruptableJob
public interface Job
The interface to be implemented by classes which represent a 'job' to be performed.
Instances of Job must have a public no-argument constructor.
JobDataMap provides a mechanism for 'instance member data' that may be required
by some implementations of this interface.
- Author:
- James House
-
Method Summary
-
Method Details
-
execute
Called by thewhen aSchedulerfires that is associated with theTriggerJob.The implementation may wish to set a
resultobject on theJobExecutionContextbefore this method exits. The result itself is meaningless to Quartz, but may be informative toorJobListenersthat are watching the job's execution.TriggerListeners- Throws:
JobExecutionException- if there is an exception while executing the job.
-