public RecurringTimer(Clock clock,
public static void main(String args)
public long getStartTime()
Get the time when this timer will fire if it is started right now.
The time will be a multiple of this timer's period and more than
current system time.
public long getRestartTime(long originalStartTime)
Get the time when the timer will fire if it is restarted right now.
This time depends on when the timer was started the first time, and was stopped
for whatever reason. The time must be a multiple of this timer's period and
more than current time.
public long start(long startTime)
Start at the given start time.
public long start()
Start at the earliest time it can start based on the period.
public long stop(boolean interruptTimer)
Stop the timer, and return the last time the callback was made.
interruptTimer = true will interrupt the callback
if it is in progress (not guaranteed to give correct time in this case).