public interface IJob
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.
IJobDetail,
JobBuilder,
DisallowConcurrentExecution,
PersistJobDataAfterExecution,
ITrigger,
IScheduler| Modifier and Type | Method and Description |
|---|---|
void |
execute(IJobExecutionContext context)
|
void execute(IJobExecutionContext context) throws JobExecutionException
Called by the when a
IScheduler fires that is associated with the
ITriggerJob.
The implementation may wish to set a
result object on the
IJobExecutionContext before this method exits. The result itself is
meaningless to Quartz, but may be informative to
or
IJobListeners that are watching the job's
execution.
ITriggerListeners
JobExecutionException - if there is an exception while executing the job.Copyright © 2016–2021 Philip Helger. All rights reserved.