|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.event.TimerEvent
public abstract class TimerEvent
A timer event. Fires MILLISECONDS into the future (possibly repeated at PERIODMILLIS intervals).
Constructor Summary | |
---|---|
TimerEvent(long offsetMillis)
Create a once-only timer that schedules an event TIMEMILLIS milliseconds into the future. |
|
TimerEvent(long offsetMillis,
long periodMillis)
Create an interval timer that schedules its first event OFFSETMILLIS milliseconds into the future, and then schedules further events every PERIODMILLIS milliseconds after that. |
Method Summary | |
---|---|
int |
compareTo(Object o)
Timer events are ordered by time. |
long |
getCount()
For the interval timer, return the number of intervals since the last periodMillis timer event was delivered. |
long |
getTimeMillis()
Return the time, in milliseconds, that this timer event is next expected to fire. |
String |
toString()
Return the TimerEvent as a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface frysk.event.Event |
---|
execute |
Constructor Detail |
---|
public TimerEvent(long offsetMillis)
public TimerEvent(long offsetMillis, long periodMillis)
Method Detail |
---|
public int compareTo(Object o)
compareTo
in interface Comparable
public long getTimeMillis()
public long getCount()
(long, long)
.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |