-
- All Implemented Interfaces:
-
io.github.cfraser.moka.Schedule
public final class FixedIntervalSchedule implements Schedule
A FixedIntervalSchedule is a Schedule implementation that executes on a fixed interval.
-
-
Constructor Summary
Constructors Constructor Description FixedIntervalSchedule(Duration interval)
-
Method Summary
-
-
Constructor Detail
-
FixedIntervalSchedule
FixedIntervalSchedule(Duration interval)
-
-
Method Detail
-
nextExecutionTime
Instant nextExecutionTime(Instant currentTime, Instant previousExecutionTime)
Return the next execution time as an Instant.
- Parameters:
currentTime- the current timepreviousExecutionTime- the previous execution time, if this value isnullthen the next execution will be the first
-
-
-
-