org.objectweb.jotm
Class TimerEvent
void | change(long timeout, Object a)
|
boolean | isStopped() - Is this timer stopped ?
|
boolean | ispermanent() - Is this timer permanent ?
|
void | process() - Process the Timer
|
void | 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 ?
|
TimerEvent
public TimerEvent(TimerEventListener l,
long timeout,
Object a,
boolean p)
Constructor
l
- Object that will be notified when the timer expire.timeout
- nb of seconds before the timer expires.a
- info passed with the timerp
- true if the timer is permanent.
change
public void change(long timeout,
Object a)
isStopped
public boolean isStopped()
Is this timer stopped ?
ispermanent
public boolean ispermanent()
Is this timer permanent ?
process
public void process()
Process the Timer
restart
public void restart()
Restart timer to its initial value
stop
public void stop()
stop the timer, but keep it for further reuse (See change())
unset
public void unset()
Unvalidate the timer. It will be removed by the timer manager.
update
public long update()
Update timer every second. Used by clock.
- this must be called with the timerList monitor.
valid
public boolean valid()
Is this timer valid ?