| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the current state of a particular Task within the TaskManager
Field Summary | |
final static int | TASK_EXECUTING Indicates that a Task is currently executing |
final static int | TASK_IDLE Indicates that a Task is not executing and has no pending events |
final static int | TASK_READY_TO_CONTINUE Indicates that a Task is ready to continue execution (events pending) |
final static int | TASK_READY_TO_START Indicates that a Task is ready to start initial execution |
Method Summary | |
(package private) synchronized void | addEvent(TaskEvent event) Adds a TaskEvent that the Task this belongs to should receive |
synchronized TaskEvent | getNextEvent() Get the next TaskEvent that the Task this belongs to should receive - this removes the event from the pending list |
synchronized int | getState() Get the state of the Task |
synchronized TaskEvent | peekNextEvent() Peek at the next TaskEvent that the Task this belongs to should receive |
(package private) void | removeReferences() Removes all references to other objects to aid garbage collection |
(package private) synchronized void | setState(int state) Set the current state of the Task this belongs to |
Field Detail |
public final static int TASK_EXECUTING
public final static int TASK_IDLE
public final static int TASK_READY_TO_CONTINUE
public final static int TASK_READY_TO_START
Method Detail |
synchronized void addEvent(TaskEvent event)
Adds a TaskEvent that the Task this belongs to should receive
public synchronized TaskEvent getNextEvent()
Get the next TaskEvent that the Task this belongs to should receive - this removes the event from the pending list
public synchronized int getState()
public synchronized TaskEvent peekNextEvent()
Peek at the next TaskEvent that the Task this belongs to should receive
void removeReferences()
synchronized void setState(int state)
Association Links |
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |