|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.monica.javacom.util.MJCThreadTimer
Class for providing MJCTimer functionality by using Thread.sleep to measure the passed time.
Constructor Summary | |
MJCThreadTimer(MJCTimerHandler tH)
Default constructor. |
Method Summary | |
boolean |
killTimer(int timerID)
Kills the timer with the specified timerID. |
void |
run()
|
boolean |
setTimer(int timerID,
int interval)
Starts the timer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MJCThreadTimer(MJCTimerHandler tH)
MJCTimerHandler
- tH: the timerHandler that has to be notified at timer eventsMethod Detail |
public boolean setTimer(int timerID, int interval)
MJCTimer
setTimer
in interface MJCTimer
com.monica.javacom.interfaces.MJCTimer
int
- timerID: the Id that will be supplied to the callback methodpublic boolean killTimer(int timerID)
MJCTimer
killTimer
in interface MJCTimer
com.monica.javacom.interfaces.MJCTimer
int
- timerID: the timerID of the to be killed timerpublic void run()
run
in interface java.lang.Runnable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |