Constructor and Description |
---|
CronType() |
CronType(java.lang.String cron) |
CronType(java.lang.String second,
java.lang.String minute,
java.lang.String hour,
java.lang.String dayOfWeek,
java.lang.String dayOfMonth,
java.lang.String month,
java.lang.String year,
java.util.Date start,
java.util.Date end)
Creates new cron trigger.
|
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String text)
Sets the text.
|
int |
nextInterval(boolean[] values,
int now) |
long |
nextTime(long now)
Returns the time of the next trigger event
|
int |
prevInterval(boolean[] values,
int now) |
long |
prevTime(long now) |
java.lang.String |
toString() |
public CronType()
public CronType(java.lang.String cron)
public CronType(java.lang.String second, java.lang.String minute, java.lang.String hour, java.lang.String dayOfWeek, java.lang.String dayOfMonth, java.lang.String month, java.lang.String year, java.util.Date start, java.util.Date end)
second
- Second expression.minute
- Minute expression.hour
- Hour expression.dayOfWeek
- Day of week expression.dayOfMonth
- Day of month expression.month
- Month expression.year
- Year expression.start
- Schedule start date.end
- Schedule end date.public void addText(java.lang.String text) throws ConfigException
ConfigException
public long nextTime(long now)
Trigger
public int nextInterval(boolean[] values, int now)
public long prevTime(long now)
public int prevInterval(boolean[] values, int now)
public java.lang.String toString()
toString
in class java.lang.Object