CronTrigger is used to fire a job using Unix 'cron-like'
schedule definitions.
As you see below image CronTrigger is an interface which
extends Trigger interface.
Cron Expressions
Cron expression are used to specify complex time
combinations such as "At 8:00pm every Monday through Sunday" or
"At 1:30pm every last Sunday of the month".
Example
0 0 12 * * ? : Used to
fire the event at 12PM on every day.
0/3 * * * * ? : Fire the event for every 3 seconds
I would recommend you to go through my below tutorial to
get more idea about cron expressions.
No comments:
Post a Comment