| java.lang.Object org.objectweb.jonas_timer.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 milliseconds before the timer expires. Parameters: a - info passed with the timer Parameters: p - true if the timer is permanent. |
change | public void change(long timeout, Object a)(Code) | | Change the Timer value
Parameters: timeout - in milliseconds |
getRemaining | public long getRemaining()(Code) | | remaining time in millisec |
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 long 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.
Parameters: ms - clock period |
valid | public boolean valid()(Code) | | Is this timer valid ?
|
|
|