Saturday 27 July 2019

Quartz: Exploring Trigger interface


What is a trigger?
Trigger is a mechanism, by which jobs are scheduled.

For example,
a.   a trigger can specify that given job ‘J1’ should execute for every 3 seconds.  
b.   Trigger can specify the start time of the job
c.    Trigger can specify at what time this job should start execution etc.,

Trigger is the base interface for all the quartz triggers like SimpleTrigger, CoreTrigger, CalendarIntervalTrigger etc.,

Below interfaces extends Trigger interface.
a.   CalendarIntervalTrigger
b.   CoreTrigger
c.    CronTrigger
d.   DailyTimeIntervalTrigger
e.   MutableTrigger
f.     SimpleTrigger



Every Trigger instance has a TriggerKey associated with it. Scheduler uses this key to uniquely identify the triggers.

In my next post, I am going to explain basics of Quartz triggers.



Previous                                                    Next                                                    Home

No comments:

Post a Comment