Quartz Scheduler Example Programs and Sample Code : Quartz Code Snippets : How-To: Create a Trigger That Executes Every 90 minutes
How-To: Create a Trigger That Executes Every 90 minutes
Using SimpleTrigger
trigger = newTrigger()
.withIdentity("trigger3", "group1")
.startNow()
.withSchedule(simpleSchedule()
.withIntervalInMinutes(90)
.repeatForever())
.build();
Using CalendarIntervalTrigger
trigger = newTrigger()
.withIdentity("trigger3", "group1")
.startNow()
.withSchedule(calendarIntervalSchedule()
.withIntervalInMinutes(90))
.build();
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback