|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.misc.LyTimer
public class LyTimer
This class implements a simple timer which notify a client when timeout expires. The client can stop the timer with the stop() method.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyTimer(LyTimerClientInterface client,
long duration)
Default constructor. |
|
LyTimer(LyTimerClientInterface client,
long duration,
java.lang.String name)
Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
getClientData()
Gets the client data. |
void |
restart()
Restart this timer. |
void |
run()
Run the timer. |
void |
setClientData(java.lang.Object clientData)
Sets the client data. |
void |
setDuration(int duration)
Change the timer timeout duration. |
void |
start()
Start this timer. |
void |
stop()
Stop this timer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyTimer(LyTimerClientInterface client, long duration)
LyTimer(client, duration, "BF AppEngine : timer thread")
client
- Thread listener clientduration
- expected timer durationpublic LyTimer(LyTimerClientInterface client, long duration, java.lang.String name)
STOPPED
, needRestart and need Stop to false.
client
- Thread listener clientduration
- expected timer durationname
- Name of the timerMethod Detail |
---|
public void setDuration(int duration)
duration
- the new timer durationpublic void run()
run
in interface java.lang.Runnable
Thread.run()
public void start()
public void stop()
public void restart()
public java.lang.Object getClientData()
public void setClientData(java.lang.Object clientData)
clientData
- user client data freely set by the user
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |