public interface IJobDetail extends com.helger.commons.lang.ICloneable<IJobDetail>
Job instance.
JobDetails are to be created/defined with JobBuilder.
Quartz does not store an actual instance of a Job class, but
instead allows you to define an instance of one, through the use of a
JobDetail.
Jobs have a name and group associated with them, which should
uniquely identify them within a single .
IScheduler
Triggers are the 'mechanism' by which Jobs are
scheduled. Many Triggers can point to the same Job,
but a single Trigger can only point to one Job.
JobBuilder,
IJob,
JobDataMap,
ITrigger| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the description given to the
Job instance by its
creator (if any). |
JobBuilder |
getJobBuilder()
Get a
JobBuilder that is configured to produce a
JobDetail identical to this one. |
Class<? extends IJob> |
getJobClass()
Get the instance of
Job that will be executed. |
JobDataMap |
getJobDataMap()
Get the
JobDataMap that is associated with the
Job. |
JobKey |
getKey() |
boolean |
isConcurrentExectionDisallowed() |
boolean |
isDurable()
Whether or not the
Job should remain stored after it is
orphaned (no point to it). |
boolean |
isPersistJobDataAfterExecution() |
boolean |
requestsRecovery()
Instructs the
Scheduler whether or not the Job
should be re-executed if a 'recovery' or 'fail-over' situation is
encountered. |
@Nullable String getDescription()
Job instance by its
creator (if any).@Nullable Class<? extends IJob> getJobClass()
Job that will be executed.@Nonnull JobDataMap getJobDataMap()
JobDataMap that is associated with the
Job.boolean isDurable()
Job should remain stored after it is
orphaned (no ITriggers point to it).false.true if the Job should remain persisted after being
orphaned.boolean isPersistJobDataAfterExecution()
PersistJobDataAfterExecution annotation.PersistJobDataAfterExecutionboolean isConcurrentExectionDisallowed()
DisallowConcurrentExecution annotation.DisallowConcurrentExecutionboolean requestsRecovery()
Instructs the Scheduler whether or not the Job
should be re-executed if a 'recovery' or 'fail-over' situation is
encountered.
If not explicitly set, the default value is false.
IJobExecutionContext.isRecovering()@Nonnull JobBuilder getJobBuilder()
JobBuilder that is configured to produce a
JobDetail identical to this one.Copyright © 2016–2021 Philip Helger. All rights reserved.