|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.scheduling.support.CronTrigger
public class CronTrigger
Trigger implementation for cron expressions.
Wraps a CronSequenceGenerator.
CronSequenceGenerator| Constructor Summary | |
|---|---|
CronTrigger(String cronExpression)
Build a CronTrigger from the pattern provided in the default time zone. |
|
CronTrigger(String cronExpression,
TimeZone timeZone)
Build a CronTrigger from the pattern provided. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
Date |
nextExecutionTime(TriggerContext triggerContext)
Determine the next execution time according to the given trigger context. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CronTrigger(String cronExpression)
CronTrigger from the pattern provided in the default time zone.
cronExpression - a space-separated list of time fields,
following cron expression conventions
public CronTrigger(String cronExpression,
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 generated| Method Detail |
|---|
public Date nextExecutionTime(TriggerContext triggerContext)
Trigger
nextExecutionTime in interface TriggertriggerContext - context object encapsulating last execution times
and last completion time
null if the trigger won't fire anymorepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||