Package org.quartz
Interface Job
-
- All Known Subinterfaces:
InterruptableJob,StatefulJob
- All Known Implementing Classes:
FileScanJob
public interface JobThe interface to be implemented by classes which represent a 'job' to be performed.
Instances of
Jobmust have apublicno-argument constructor.JobDataMapprovides a mechanism for 'instance member data' that may be required by some implementations of this interface.- Author:
- James House
- See Also:
JobDetail,JobBuilder,ExecuteInJTATransaction,DisallowConcurrentExecution,PersistJobDataAfterExecution,Trigger,Scheduler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(JobExecutionContext context)
-
-
-
Method Detail
-
execute
void execute(JobExecutionContext context) throws JobExecutionException
Called by the
when 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.
-
-