|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_timer.TimerEvent
public class TimerEvent
Constructor Summary | |
---|---|
TimerEvent(TimerEventListener l,
long timeout,
java.lang.Object a,
boolean p)
Constructor |
Method Summary | |
---|---|
void |
change(long timeout,
java.lang.Object a)
Change the Timer value |
long |
getRemaining()
|
boolean |
ispermanent()
Is this timer permanent ? |
boolean |
isStopped()
Is this timer stopped ? |
void |
process()
Process the Timer |
long |
restart()
Restart timer to its initial value |
void |
stop()
stop the timer, but keep it for further reuse (See change()) |
void |
unset()
Unvalidate the timer. |
long |
update()
Update timer every second. |
boolean |
valid()
Is this timer valid ? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimerEvent(TimerEventListener l, long timeout, java.lang.Object a, boolean p)
l
- Object that will be notified when the timer expire.timeout
- nb of milliseconds before the timer expires.a
- info passed with the timerp
- true if the timer is permanent.Method Detail |
---|
public long update()
ms
- clock periodpublic long restart()
public void process()
public void change(long timeout, java.lang.Object a)
timeout
- in millisecondspublic void unset()
public void stop()
public boolean valid()
public boolean ispermanent()
public boolean isStopped()
public long getRemaining()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |