public class CronSequenceGenerator extends Object
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:
构造器和说明 |
---|
CronSequenceGenerator(String expression)
Construct a
CronSequenceGenerator from the pattern provided,
using the default TimeZone . |
CronSequenceGenerator(String expression,
TimeZone timeZone)
Construct a
CronSequenceGenerator from the pattern provided,
using the specified TimeZone . |
public CronSequenceGenerator(String expression)
CronSequenceGenerator
from the pattern provided,
using the default TimeZone
.expression
- a space-separated list of time fieldsIllegalArgumentException
- if the pattern cannot be parsedTimeZone.getDefault()
public CronSequenceGenerator(String expression, TimeZone timeZone)
CronSequenceGenerator
from the pattern provided,
using the specified TimeZone
.expression
- a space-separated list of time fieldstimeZone
- the TimeZone to use for generated trigger timesIllegalArgumentException
- if the pattern cannot be parsedCopyright © 2017. All rights reserved.