public class TriggerFactory extends Object
Constructor and Description |
---|
TriggerFactory() |
Modifier and Type | Method and Description |
---|---|
static org.quartz.Trigger |
getCronTrigger(org.quartz.TriggerKey triggerKey,
org.quartz.CronExpression cronExpression,
boolean ignoreMisfired) |
static org.quartz.Trigger |
getDateTrigger(org.quartz.TriggerKey triggerKey,
Date startDate,
boolean ignoreMisfired) |
static org.quartz.Trigger |
getDelayTrigger(org.quartz.TriggerKey triggerKey,
int delay,
org.quartz.DateBuilder.IntervalUnit delyUnit,
boolean ignoreMisfired) |
public static org.quartz.Trigger getDateTrigger(org.quartz.TriggerKey triggerKey, Date startDate, boolean ignoreMisfired)
triggerKey
- TriggerKey
to use for the triggerstartDate
- Date
when the trigger should fireignoreMisfired
- true
if misfired triggers should be ignored, false
otherwiseTrigger
the created triggerpublic static org.quartz.Trigger getDelayTrigger(org.quartz.TriggerKey triggerKey, int delay, org.quartz.DateBuilder.IntervalUnit delyUnit, boolean ignoreMisfired)
triggerKey
- TriggerKey
to use for the triggerdelay
- Integer
the delay when the trigger should firedelyUnit
- DateBuilder.IntervalUnit
of the delayignoreMisfired
- true
if misfired triggers should be ignored, false
otherwiseTrigger
the created triggerpublic static org.quartz.Trigger getCronTrigger(org.quartz.TriggerKey triggerKey, org.quartz.CronExpression cronExpression, boolean ignoreMisfired)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.