|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object that implements this interface is returned by the ThreadPool
execute methods. This object can be used to get information about the status
of the task and why it failed. It can also be used to wait until the task
completes.
Copyright 2002 Sapient
Method Summary | |
Throwable |
getFailureCause()
Gets the cause of task failure. |
TaskStatusEnum |
getStatus()
Gets the task's status. |
String |
getTaskName()
Gets the name of the task as it was passed in to the ThreadPool.execute method. |
void |
waitUntilExecuted()
Waits indefinitely for the task to complete. |
void |
waitUntilExecuted(long miliseconds)
Waits a given amout of time for the task to complete. |
Method Detail |
public TaskStatusEnum getStatus()
public void waitUntilExecuted() throws InterruptedException
InterruptedException
public void waitUntilExecuted(long miliseconds) throws InterruptedException
miliseconds
- timout in miliseconds
InterruptedException
public Throwable getFailureCause()
public String getTaskName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |