|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.services.cron.IntervalSchedule
public class IntervalSchedule
A very simple schedule, that simply executes the desired job at fixed intervals.
Constructor Summary | |
---|---|
IntervalSchedule(long interval)
Interval at which the schedule should execute jobs. |
Method Summary | |
---|---|
long |
firstExecution()
For a newly created job, what is the start time for the job. |
long |
nextExecution(long previousExecution)
Computes the next execution time for a job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalSchedule(long interval)
interval
- in millisecondsMethod Detail |
---|
public long firstExecution()
Schedule
firstExecution
in interface Schedule
public long nextExecution(long previousExecution)
Schedule
nextExecution
in interface Schedule
previousExecution
- time of previous execution (in system clock millis)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |