|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A task wrapper for a thread pool.
Method Summary | |
void |
acceptTask()
The task has been accepted |
long |
getTaskCompletionTimeout()
The time before the task must be completed |
int |
getTaskPriority()
The priority of the task |
long |
getTaskStartTimeout()
The time before the task must be accepted |
int |
getTaskWaitType()
Get the type of wait |
boolean |
isComplete()
Indicate if the task has exited the Runnable#run method |
void |
rejectTask(java.lang.RuntimeException e)
The task has been rejected |
void |
stopTask()
Invoked by the threadpool when it wants to stop the task |
void |
waitForTask()
Wait according the wait type |
Methods inherited from interface java.lang.Runnable |
run |
Method Detail |
public int getTaskWaitType()
public int getTaskPriority()
public long getTaskStartTimeout()
public long getTaskCompletionTimeout()
public void waitForTask()
public void stopTask()
public void acceptTask()
public void rejectTask(java.lang.RuntimeException e)
e
- any error associated with the rejectionpublic boolean isComplete()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |