public class IntervalSchedule extends Object implements Schedule
Constructor and Description |
---|
IntervalSchedule(long interval)
Interval at which the schedule should execute jobs.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public IntervalSchedule(long interval)
interval
- in millisecondspublic 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)5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.