|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hardcode.gdbms.engine.internalExceptions.Timer
public class Timer
Reseteable timer. After a cancelTimer or after the execution of the scheduled task the object becomes unuseful: It's not possible to schedule more tasks
Nested Class Summary | |
---|---|
class |
Timer.TimerThread
timer thread |
Constructor Summary | |
---|---|
Timer()
|
Method Summary | |
---|---|
void |
cancelTimer()
cancels the timer. |
void |
resetTimer()
restarts the timer |
void |
schedule(Task task,
long delay)
schedules a task |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public void schedule(Task task, long delay)
task
- task to scheduledelay
- delay in millisecondspublic void resetTimer()
public void cancelTimer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |