Package org.quartz.triggers
Interface MutableTrigger
- All Superinterfaces:
- Cloneable,- Comparable<Trigger>,- Serializable,- Trigger
- All Known Subinterfaces:
- OperableTrigger
- All Known Implementing Classes:
- AbstractTrigger,- CronTriggerImpl,- SimpleTriggerImpl
Defines the setters for Trigger
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.quartz.triggers.TriggerTrigger.CompletedExecutionInstruction, Trigger.TriggerTimeComparator
- 
Field SummaryFields inherited from interface org.quartz.triggers.TriggerDEFAULT_PRIORITY, MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY, MISFIRE_INSTRUCTION_SMART_POLICY
- 
Method SummaryModifier and TypeMethodDescriptionclone()voidsetCalendarName(String calendarName) Associate theCalendarvoidsetDescription(String description) Set a description for theTriggerinstance - may be useful for remembering/displaying the purpose of the trigger, though the description has no meaning to Quartz.voidsetEndTime(Date endTime) Set the time at which theTriggershould quit repeating - regardless of any remaining repeats (based on the trigger's particular repeat settings).voidsetJobDataMap(JobDataMap jobDataMap) Set theJobDataMapto be associated with theTrigger.voidsetJobName(String key) Set the name of the associatedJobDetailvoidsetMisfireInstruction(int misfireInstruction) Set the instruction theSchedulershould be given for handling misfire situations for thisTrigger- the concreteTriggertype that you are using will have defined a set of additionalMISFIRE_INSTRUCTION_XXXconstants that may be passed to this method.voidSet the name of thisTrigger.voidsetPriority(int priority) The priority of aTriggeracts as a tie breaker such that if twoTriggers have the same scheduled fire time, then Quartz will do its best to give the one with the higher priority first access to a worker thread.voidsetStartTime(Date startTime) The time at which the trigger's scheduling should start.Methods inherited from interface java.lang.ComparablecompareToMethods inherited from interface org.quartz.triggers.Triggerequals, getCalendarName, getDescription, getEndTime, getFinalFireTime, getFireTimeAfter, getJobDataMap, getJobName, getMisfireInstruction, getName, getNextFireTime, getPreviousFireTime, getPriority, getStartTime, mayFireAgain
- 
Method Details- 
setNameSet the name of thisTrigger.- Throws:
- IllegalArgumentException- if name is null or empty.
 
- 
setJobNameSet the name of the associatedJobDetail- Throws:
- IllegalArgumentException- if jobName is null or empty.
 
- 
setDescriptionSet a description for theTriggerinstance - may be useful for remembering/displaying the purpose of the trigger, though the description has no meaning to Quartz.
- 
setCalendarNameAssociate theCalendar- Parameters:
- calendarName- use- nullto dis-associate a Calendar.
 
- 
setJobDataMapSet theJobDataMapto be associated with theTrigger.
- 
setPriorityvoid setPriority(int priority) The priority of aTriggeracts as a tie breaker such that if twoTriggers have the same scheduled fire time, then Quartz will do its best to give the one with the higher priority first access to a worker thread.If not explicitly set, the default value is 5.- See Also:
 
- 
setStartTimeThe time at which the trigger's scheduling should start. May or may not be the first actual fire time of the trigger, depending upon the type of trigger and the settings of the other properties of the trigger. However the first actual first time will not be before this date.Setting a value in the past may cause a new trigger to compute a first fire time that is in the past, which may cause an immediate misfire of the trigger. 
- 
setEndTimeSet the time at which theTriggershould quit repeating - regardless of any remaining repeats (based on the trigger's particular repeat settings).- See Also:
- 
- 
invalid @seeTriggerUtils#computeEndTimeToAllowParticularNumberOfFirings(Trigger, Calendar, int)
 
- 
 
- 
setMisfireInstructionvoid setMisfireInstruction(int misfireInstruction) Set the instruction theSchedulershould be given for handling misfire situations for thisTrigger- the concreteTriggertype that you are using will have defined a set of additionalMISFIRE_INSTRUCTION_XXXconstants that may be passed to this method.If not explicitly set, the default value is MISFIRE_INSTRUCTION_SMART_POLICY.- See Also:
- 
- Trigger.MISFIRE_INSTRUCTION_SMART_POLICY
- 
invalid @see#updateAfterMisfire(Calendar)
- SimpleTrigger
- CronTrigger
 
 
- 
cloneObject clone()
 
-