|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> [ asyncjob overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.lib.asyncjob
Interface AsyncJobExecution

- All Known Implementing Classes:
- AbstractAsyncJobRunner.ExecutionImpl
- public interface AsyncJobExecution
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. |
java.lang.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 |
getAsyncJobRunner
public AsyncJobRunner getAsyncJobRunner()
- Get the runner running this job
getAsyncJob
public AsyncJob getAsyncJob()
- Get the job being run
waitForCompletion
public boolean waitForCompletion()
throws java.lang.InterruptedException
- Wait until the job is finished.
isStarted
public boolean isStarted()
- Has the job started yet?
isFinished
public boolean isFinished()
- Has the job finished yet?
getResult
public java.lang.Object getResult()
- Get the job result value.
getException
public AsyncJobException getException()
- Get the job failure exception.
addAsyncJobListener
public void addAsyncJobListener(AsyncJobListener listener)
- Add an execution listener.
removeAsyncJobListener
public void removeAsyncJobListener(AsyncJobListener listener)
- Remove an execution listener.
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> [ asyncjob overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC