CalendarIntervalScheduleBuilder
is a {@link ScheduleBuilder} that defines calendar time (day, week, month, year) interval-based schedules for Trigger
s. Quartz provides a builder-style API for constructing scheduling-related entities via a Domain-Specific Language (DSL). The DSL can best be utilized through the usage of static imports of the methods on the classes TriggerBuilder
, JobBuilder
, DateBuilder
, JobKey
, TriggerKey
and the various ScheduleBuilder
implementations.
Client code can then use the DSL to write code such as this:
JobDetail job = newJob(MyJob.class) .withIdentity("myJob") .build(); Trigger trigger = newTrigger() .withIdentity(triggerKey("myTrigger", "myTriggerGroup")) .withSchedule(withIntervalInDays(3)) .startAt(futureDate(10, MINUTES)) .build(); scheduler.scheduleJob(job, trigger);@see DailyTimeIntervalScheduleBuilder @see CronScheduleBuilder @see ScheduleBuilder @see SimpleScheduleBuilder @see TriggerBuilder
|
|