|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.selector.TimerTask
Field Summary | |
protected boolean |
cancelled
DESCRIBE THE FIELD |
protected boolean |
fixedRate
DESCRIBE THE FIELD |
protected long |
nextExecutionTime
DESCRIBE THE FIELD |
protected int |
period
If period is positive, task will be rescheduled. |
Constructor Summary | |
TimerTask()
|
Method Summary | |
boolean |
cancel()
DESCRIBE THE METHOD |
int |
compareTo(java.lang.Object arg0)
DESCRIBE THE METHOD |
boolean |
execute(TimeSource ts)
Returns true if should re-insert. |
boolean |
isCancelled()
Gets the Cancelled attribute of the TimerTask object |
abstract void |
run()
Main processing method for the TimerTask object |
long |
scheduledExecutionTime()
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected long nextExecutionTime
protected boolean cancelled
protected int period
protected boolean fixedRate
Constructor Detail |
public TimerTask()
Method Detail |
public boolean isCancelled()
public abstract void run()
run
in interface CancellableTask
public boolean execute(TimeSource ts)
ts
- DESCRIBE THE PARAMETER
public boolean cancel()
cancel
in interface CancellableTask
public long scheduledExecutionTime()
scheduledExecutionTime
in interface CancellableTask
public int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable
arg0
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |