T - type of the position representation.public abstract class BaseTimerDrivenModuleContext<T> extends Object implements TimerDrivenModuleContext<T>
TimerDrivenModuleContext implementations.ASAP| Constructor and Description |
|---|
BaseTimerDrivenModuleContext()
Create a new context indicating the module should be called ASAP.
|
BaseTimerDrivenModuleContext(long earliestNextCall)
Create a new context indicating when is the earliest time the module should be called.
|
| Modifier and Type | Method and Description |
|---|---|
long |
earliestNextCall()
Get the earliest time the
TimerDrivenModule wishes to be called again. |
boolean |
equals(Object o) |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitfindpublic BaseTimerDrivenModuleContext()
public BaseTimerDrivenModuleContext(long earliestNextCall)
earliestNextCall - in ms since 1/1/1970public long earliestNextCall()
TimerDrivenModule wishes to be called again.
Modules that want to be called as often as possible should return TimerDrivenModuleContext.ASAP.earliestNextCall in interface TimerDrivenModuleContext<T>Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.