|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object can implement this interface to have a managed periodic call of the task method from the TaskThread class
Field Summary | |
static TaskThread |
tasker
The "system" creates a default TaskThread for all taskable objects. |
Method Summary | |
void |
addedToTasker(TaskThread t)
This is called by a TaskThread when an object is added to a TaskThread. |
TaskThread |
getTasker()
This should return the task thread that the Taskable object is currently being tasked by or null if not being tasked. |
void |
removedFromTasker()
This is called by a TaskThread when an object is removed from a TaskThread. |
void |
startTasking()
This will start tasking the Timeable object. |
void |
stopTasking()
This will stop tasking the Timeable object. |
void |
task()
This method is defined as a method that is called periodically to perform tasks. |
Field Detail |
public static final TaskThread tasker
Method Detail |
public void task() throws QTException
public TaskThread getTasker()
public void addedToTasker(TaskThread t)
t
- the TaskThreadpublic void removedFromTasker()
t
- the TaskThreadpublic void startTasking()
public void stopTasking()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |