Package eu.woolplatform.utils.schedule
Class TaskSchedule.FixedRate
- java.lang.Object
-
- eu.woolplatform.utils.schedule.TaskSchedule
-
- eu.woolplatform.utils.schedule.TaskSchedule.FixedRate
-
- Enclosing class:
- TaskSchedule
public static class TaskSchedule.FixedRate extends TaskSchedule
Schedule for a task that should be run immediately and then repeated indefinitely at the specified rate. This means that each run is started at time n * interval milliseconds after the start of the first task. An iteration may be skipped if a run takes longer than "interval" milliseconds.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.woolplatform.utils.schedule.TaskSchedule
TaskSchedule.FixedDelay, TaskSchedule.FixedRate, TaskSchedule.Immediate, TaskSchedule.LocalTime, TaskSchedule.TimeSchedule, TaskSchedule.UtcTime
-
-
Constructor Summary
Constructors Constructor Description FixedRate(long interval)Constructs a new fixed rate schedule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetInterval()Returns the interval in milliseconds.
-