|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.nb.pogamut.base.introspection.PeriodicalTaskPerformer
public abstract class PeriodicalTaskPerformer
Object for performing some periodical task which can overload the CPU.
| Field Summary | |
|---|---|
protected static long |
MIN_UPDATE_GAP
Minimal gap between two calls of taskDefinition(). |
protected long |
timeOfLastUpdate
Time of last call of taskDefinition(). |
| Constructor Summary | |
|---|---|
PeriodicalTaskPerformer()
Creates a new instance of PeriodicalTaskPerformer |
|
| Method Summary | |
|---|---|
void |
performTask()
Call this method if you want your task to be performed. |
protected abstract void |
taskDefinition()
Definition of task to be performed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static long MIN_UPDATE_GAP
protected long timeOfLastUpdate
| Constructor Detail |
|---|
public PeriodicalTaskPerformer()
| Method Detail |
|---|
public void performTask()
protected abstract void taskDefinition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||