Constructor and Description |
---|
RecurringTimer(Clock clock,
long period,
scala.Function1<Object,scala.runtime.BoxedUnit> callback,
String name) |
Modifier and Type | Method and Description |
---|---|
long |
getRestartTime(long originalStartTime)
Get the time when the timer will fire if it is restarted right now.
|
long |
getStartTime()
Get the time when this timer will fire if it is started right now.
|
static void |
main(String[] args) |
long |
start()
Start at the earliest time it can start based on the period.
|
long |
start(long startTime)
Start at the given start time.
|
long |
stop(boolean interruptTimer)
Stop the timer, and return the last time the callback was made.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public RecurringTimer(Clock clock, long period, scala.Function1<Object,scala.runtime.BoxedUnit> callback, String name)
public static void main(String[] args)
public long getStartTime()
public long getRestartTime(long originalStartTime)
public long start(long startTime)
public long start()
public long stop(boolean interruptTimer)