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