public class TimerEvent
extends java.lang.Object
Constructor and Description |
---|
TimerEvent(TimerEventListener l,
long timeout,
java.lang.Object a,
boolean p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
change(long timeout,
java.lang.Object a) |
boolean |
ispermanent()
Is this timer permanent ?
|
boolean |
isStopped()
Is this timer stopped ?
|
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 ?
|
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 seconds before the timer expires.a
- info passed with the timerp
- true if the timer is permanent.public long update()
public void restart()
public void process()
public void change(long timeout, java.lang.Object a)
public void unset()
public void stop()
public boolean valid()
public boolean ispermanent()
public boolean isStopped()