|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An object that tracks an execution of a single AsyncJob.
| Method Summary | |
void |
addAsyncJobListener(AsyncJobListener listener)
Add an execution listener. |
AsyncJob |
getAsyncJob()
Get the job being run |
AsyncJobRunner |
getAsyncJobRunner()
Get the runner running this job |
AsyncJobException |
getException()
Get the job failure exception. |
Object |
getResult()
Get the job result value. |
boolean |
isFinished()
Has the job finished yet? |
boolean |
isStarted()
Has the job started yet? |
void |
removeAsyncJobListener(AsyncJobListener listener)
Remove an execution listener. |
boolean |
waitForCompletion()
Wait until the job is finished. |
| Method Detail |
public AsyncJobRunner getAsyncJobRunner()
public AsyncJob getAsyncJob()
public boolean waitForCompletion()
throws InterruptedException
InterruptedExceptionpublic boolean isStarted()
public boolean isFinished()
public Object getResult()
public AsyncJobException getException()
public void addAsyncJobListener(AsyncJobListener listener)
listener - listener to addpublic void removeAsyncJobListener(AsyncJobListener listener)
listener - listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||