|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.util.JxtaTimer
This class implements a simple timer utility. Note that this class is provided only because java.util.Timer was introduced in Java 1.3, and Jxta implementation must be able to run on older Java version (1.1.4).
net.jxta.util.JxtaTimerHandler
Constructor Summary | |
JxtaTimer(JxtaTimerHandler handler,
long delay,
boolean repeat)
Timer constructor |
Method Summary | |
void |
cancel()
cancel a pending timer. |
void |
run()
run method to start the thread timer |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public JxtaTimer(JxtaTimerHandler handler, long delay, boolean repeat)
handler
- is a handler invoked when the timer goes offdelay
- is the delay in milliseconds before the timer goes offrepeat
- is set to false if the timer is supposes to go off only once
and then die, or set to true if the timer is supposed to go off several time
until it is cancelled.Method Detail |
public void cancel()
public void run()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |