|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.scheduling.support.CronSequenceGenerator
public class CronSequenceGenerator
Date sequence generator for a Crontab pattern, allowing clients to specify a pattern that the sequence matches.
The pattern is a list of six single space-separated fields: representing second, minute, hour, day, month, weekday. Month and weekday names can be given as the first three letters of the English names.
Example patterns:
CronTrigger
Constructor Summary | |
---|---|
CronSequenceGenerator(String expression,
TimeZone timeZone)
Construct a CronSequenceGenerator from the pattern provided. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
Date |
next(Date date)
Get the next Date in the sequence matching the Cron pattern and
after the value provided. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CronSequenceGenerator(String expression, TimeZone timeZone)
CronSequenceGenerator
from the pattern provided.
expression
- a space-separated list of time fieldstimeZone
- the TimeZone to use for generated trigger times
IllegalArgumentException
- if the pattern cannot be parsedMethod Detail |
---|
public Date next(Date date)
Date
in the sequence matching the Cron pattern and
after the value provided. The return value will have a whole number of
seconds, and will be after the input value.
date
- a seed value
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |