| Modifier and Type | Field and Description |
|---|---|
EventSubscriber |
es |
int |
index |
boolean |
onHeap |
VolatileBoolean |
onQueue |
static int |
TIMED_OUT |
static Event |
timedOut |
| Constructor and Description |
|---|
Timer(EventSubscriber es) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
int |
compareTo(Timer o) |
long |
getExecutionTime() |
void |
setLiteral(long value)
set the timer value explicitly, ie not relative to the current time
|
void |
setTimer(long timeoutMillis)
set the timer relative to the current time, ie set a delay (in milliseconds)
|
public VolatileBoolean onQueue
public volatile boolean onHeap
public static final int TIMED_OUT
public static final Event timedOut
public int index
public EventSubscriber es
public Timer(EventSubscriber es)
public int compareTo(Timer o)
compareTo in interface java.lang.Comparable<Timer>public void setTimer(long timeoutMillis)
public void setLiteral(long value)
public void cancel()
public long getExecutionTime()