|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx4j.timer.TimeQueue
A queue that executes TimeTask
s when it is started.
Every scheduled task is executed at the specified time; if this time is in the past,
the task is executed immediately.
Just before the task is executed, the task itself is updated so that its new
execution time is set or it is marked as finished (if it is not forever periodic).
TimeTask
Constructor Summary | |
TimeQueue()
Creates a new TimeQueue |
|
TimeQueue(boolean daemon)
Creates a new TimeQueue that will set the thread daemon or not depending on the given argument |
Method Summary | |
void |
clear()
Removes all the tasks from this TimeQueue. |
void |
schedule(TimeTask task)
Schedules the given task for execution. |
int |
size()
Returns the number of tasks present in this TimeQueue |
void |
start()
Starts this TimeQueue. |
void |
stop()
Stops this TimeQueue. |
void |
unschedule(TimeTask task)
Removes the given task from this TimeQueue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeQueue()
public TimeQueue(boolean daemon)
Method Detail |
public void start()
stop()
public void stop()
start()
public int size()
public void schedule(TimeTask task)
unschedule(mx4j.timer.TimeTask)
public void unschedule(TimeTask task)
schedule(mx4j.timer.TimeTask)
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |