|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cron
Represents a time specification in the traditional Cron style.
Field Summary | |
---|---|
static java.lang.String |
APR
April |
static int |
APRIL
April |
static java.lang.String |
AUG
August |
static int |
AUGUST
August |
static java.lang.String |
DEC
December |
static int |
DECEMBER
December |
static java.lang.String |
FEB
February |
static int |
FEBRUARY
February |
static java.lang.String |
FRI
Friday |
static int |
FRIDAY
Friday |
static java.lang.String |
JAN
January |
static int |
JANUARY
January |
static java.lang.String |
JUL
July |
static int |
JULY
July |
static java.lang.String |
JUN
June |
static int |
JUNE
June |
static java.lang.String |
MAR
March |
static int |
MARCH
March |
static int |
MAY_INT
May |
static java.lang.String |
MAY_STRING
May |
static java.lang.String |
MON
Monday |
static int |
MONDAY
Monday |
static java.lang.String |
NOV
November |
static int |
NOVEMBER
November |
static java.lang.String |
OCT
October |
static int |
OCTOBER
October |
static java.lang.String |
SAT
Saturday |
static int |
SATURDAY
Saturday |
static java.lang.String |
SEP
September |
static int |
SEPTEMBER
September |
static java.lang.String |
SUN
Sunday |
static int |
SUNDAY
Sunday |
static java.lang.String |
THU
Thursday |
static int |
THURSDAY
Thursday |
static java.lang.String |
TUE
Tuesday |
static int |
TUESDAY
Tuesday |
static java.lang.String |
WED
Wednesday |
static int |
WEDNESDAY
Wednesday |
Method Summary | |
---|---|
boolean |
isCronForLoop()
Returns true only if this Cron object is a Cron "for" loop. |
boolean |
isCronOr()
Returns true only if this Cron object is a Cron "or". |
boolean |
isRegularCron()
Returns true only if this Cron object is not a Cron "for" loop and is not a Cron "or". |
java.util.Date |
previous()
Returns the previous date that satisfies the constraints of this Time Expression. |
java.util.Date |
previous(java.util.Date before)
Returns the previous date that satisfies the constraints of this Time Expression; the previous date comes strictly before the specified date. |
java.lang.String |
toString()
Converts the Cron-style Time Expression to string form, which can then be submitted to the engine as a Time Expression. |
Methods inherited from interface flux.CronSlice |
---|
add, add, add, add, add, add, addAll, addAll, get, getEndingCronColumn, getStartingCronColumn, includesAllValues |
Methods inherited from interface flux.TimeExpression |
---|
accept, getBusinessInterval, getTimeZone, next, next, reset, setBusinessInterval, setTimeZone |
Field Detail |
---|
static final int SUNDAY
static final int MONDAY
static final int TUESDAY
static final int WEDNESDAY
static final int THURSDAY
static final int FRIDAY
static final int SATURDAY
static final java.lang.String SUN
static final java.lang.String MON
static final java.lang.String TUE
static final java.lang.String WED
static final java.lang.String THU
static final java.lang.String FRI
static final java.lang.String SAT
static final int JANUARY
static final int FEBRUARY
static final int MARCH
static final int APRIL
static final int MAY_INT
static final int JUNE
static final int JULY
static final int AUGUST
static final int SEPTEMBER
static final int OCTOBER
static final int NOVEMBER
static final int DECEMBER
static final java.lang.String JAN
static final java.lang.String FEB
static final java.lang.String MAR
static final java.lang.String APR
static final java.lang.String MAY_STRING
static final java.lang.String JUN
static final java.lang.String JUL
static final java.lang.String AUG
static final java.lang.String SEP
static final java.lang.String OCT
static final java.lang.String NOV
static final java.lang.String DEC
Method Detail |
---|
boolean isCronForLoop()
boolean isCronOr()
boolean isRegularCron()
java.util.Date previous() throws EngineException
For example, consider the following code.
Date d1 = myTimeExpression.previous(); Date d2 = myTimeExpression.previous();In the above code, the first call evaluates a Time Expression relative to the current time. The result is stored in d1. The second call evaluates a Time Expression relative to d1 and stores the result in d2.
EngineException
- if the time expression does not evaluate correctly.java.util.Date previous(java.util.Date before) throws EngineException
For example, consider the following code.
Date d2 = myTimeExpression.previous(d1); Date d3 = myTimeExpression.previous();In the above code, the first call evaluates a Time Expression relative to d1. The result is stored in d2. The second call evaluates a Time Expression relative to d2 and stores the result in d3.
before
- The result is strictly before this date.
EngineException
- if the time expression does not evaluate correctly.java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |