mx4j.timer
public abstract class TimeTask extends Object implements Comparable, Runnable
Subclasses implement the periodicity, if needed. Two TimeTasks are compared with their neext execution time.
Version: $Revision: 1.3 $
Constructor Summary | |
---|---|
protected | TimeTask()
Constructor for subclasses |
Method Summary | |
---|---|
int | compareTo(Object obj)
Compares 2 TimeTasks by comparing their next execution times
|
boolean | getFixedRate()
Returns whether this task is a fixed rate or fixed delay task. |
protected long | getNextExecutionTime()
Returns the next time at which the task will be executed, ie the TimeTask method is called.
|
protected long | getPeriod()
Returns the period of this task. |
protected boolean | isFinished()
Returns whethere this task is finished.
|
protected boolean | isPeriodic()
Returns whether this task is periodic. |
abstract void | run()
The method to implement to have this TimeTask to do something. |
protected void | setFinished(boolean value)
Marks this task as finished or not. |
protected void | setNextExecutionTime(long time)
Sets the next execution time.
|
See Also: TimeTask
See Also: TimeTask
See Also: TimeTask
See Also: TimeTask
See Also: TimeTask
See Also: TimeTask
See Also: TimeTask