public interface IOperableTrigger extends IMutableTrigger
ITrigger.ECompletedExecutionInstruction, ITrigger.EMisfireInstruction, ITrigger.ETriggerStateDEFAULT_PRIORITY| Modifier and Type | Method and Description |
|---|---|
Date |
computeFirstFireTime(ICalendar aCalendar)
This method should not be used by the Quartz client.
|
ITrigger.ECompletedExecutionInstruction |
executionComplete(IJobExecutionContext aContext,
JobExecutionException result)
This method should not be used by the Quartz client.
|
IOperableTrigger |
getClone() |
String |
getFireInstanceId()
This method should not be used by the Quartz client.
|
void |
setFireInstanceId(String id)
This method should not be used by the Quartz client.
|
void |
setNextFireTime(Date nextFireTime) |
void |
setPreviousFireTime(Date previousFireTime) |
void |
triggered(ICalendar calendar)
This method should not be used by the Quartz client.
|
void |
updateAfterMisfire(ICalendar cal)
This method should not be used by the Quartz client.
|
void |
updateWithNewCalendar(ICalendar cal,
long misfireThreshold)
This method should not be used by the Quartz client.
|
void |
validate()
Validates whether the properties of the
JobDetail are valid
for submission into a Scheduler. |
setCalendarName, setDescription, setEndTime, setJobDataMap, setJobKey, setKey, setMisfireInstruction, setPriority, setStartTimecompareTo, equals, getCalendarName, getDescription, getEndTime, getFinalFireTime, getFireTimeAfter, getJobDataMap, getJobKey, getKey, getMisfireInstruction, getNextFireTime, getPreviousFireTime, getPriority, getScheduleBuilder, getStartTime, getTriggerBuilder, mayFireAgainvoid triggered(ICalendar calendar)
IScheduler has decided to 'fire' the trigger
(execute the associated Job), in order to give the
Trigger a chance to update itself for its next triggering (if
any).Date computeFirstFireTime(ICalendar aCalendar)
Trigger is first added
to the scheduler, in order to have the Trigger compute its
first fire time, based on any associated calendar.getNextFireTime() should
return a valid answer.Trigger will be fired by
the scheduler, which is also the same value
getNextFireTime() will return (until after the first
firing of the Trigger).@Nonnull ITrigger.ECompletedExecutionInstruction executionComplete(IJobExecutionContext aContext, @Nullable JobExecutionException result)
Scheduler has executed the
IJobDetail associated with the
Trigger in order to get the final instruction code from the
trigger.aContext - is the JobExecutionContext that was used by the
Job'sexecute(xx) method.result - is the JobExecutionException thrown by the
Job, if any (may be null).CompletedExecutionInstruction constants.triggered(ICalendar)void updateAfterMisfire(ICalendar cal)
Trigger's state based on
the MISFIRE_INSTRUCTION_XXX that was selected when the Trigger
was created.void updateWithNewCalendar(ICalendar cal, long misfireThreshold)
Trigger's state based on
the given new version of the associated Calendar (the state
should be updated so that it's next fire time is appropriate given the
Calendar's new settings).cal - void validate()
throws SchedulerException
JobDetail are valid
for submission into a Scheduler.IllegalStateException - if a required property (such as Name, Group, Class) is not set.SchedulerExceptionvoid setFireInstanceId(@Nullable String id)
IJobStore
implementations, in order to facilitate 'recognizing' instances of fired
Trigger s as their jobs complete execution.@Nullable String getFireInstanceId()
void setNextFireTime(Date nextFireTime)
void setPreviousFireTime(Date previousFireTime)
IOperableTrigger getClone()
getClone in interface IMutableTriggergetClone in interface ITriggerCopyright © 2016–2021 Philip Helger. All rights reserved.