|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
R - The return value type of the resultpublic interface Executable<R>
The Executable is like a Job, but the execution is
not necessarily performed synchronous.
The exec() method does not wait until the job execution has
completed, and thus an execution monitor object is returned.
The execAndWait() method blocks until completion and returns the
result, which might also be an exception, thus a result object instead of the
return value is returned.
| Method Summary | |
|---|---|
JobMonitor<R> |
exec()
Executes and returns immediately, without waiting for completion. |
JobMonitor<R> |
exec(JobTerminationHandler<R> terminationHandler)
Executes and returns immediately, without waiting for completion. |
JobResult<R> |
execAndWait()
Executes and waits for completion. |
R |
execAndWaitThrowException()
Executes and waits for completion. |
| Method Detail |
|---|
JobMonitor<R> exec()
JobMonitor<R> exec(JobTerminationHandler<R> terminationHandler)
terminationHandler - the handler for normal and exceptional termination of this job
JobResult<R> execAndWait()
throws InterruptedException
InterruptedException
R execAndWaitThrowException()
throws InterruptedException,
Throwable
InterruptedException
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||