public class CronTrigger extends java.lang.Object implements Trigger
Trigger implementation for cron expressions.
Wraps a CronSequenceGenerator.CronSequenceGenerator| Constructor and Description |
|---|
CronTrigger(java.lang.String cronExpression)
Build a
CronTrigger from the pattern provided in the default time zone. |
CronTrigger(java.lang.String cronExpression,
java.util.TimeZone timeZone)
Build a
CronTrigger from the pattern provided. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExpression() |
int |
hashCode() |
java.util.Date |
nextExecutionTime(TriggerContext triggerContext)
Determine the next execution time according to the given trigger context.
|
java.lang.String |
toString() |
public CronTrigger(java.lang.String cronExpression)
CronTrigger from the pattern provided in the default time zone.cronExpression - a space-separated list of time fields,
following cron expression conventionspublic CronTrigger(java.lang.String cronExpression,
java.util.TimeZone timeZone)
CronTrigger from the pattern provided.cronExpression - a space-separated list of time fields,
following cron expression conventionstimeZone - a time zone in which the trigger times will be generatedpublic java.util.Date nextExecutionTime(TriggerContext triggerContext)
TriggernextExecutionTime in interface TriggertriggerContext - context object encapsulating last execution times
and last completion timenull if the trigger won't fire anymorepublic java.lang.String getExpression()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object