|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.job.MultiJobExecutable<R>
public class MultiJobExecutable<R>
The MultiJobExecutable executes multiple jobs, each in its own
thread. The result is a queue of the single job results, if all
jobs terminated normally. If any of the jobs terminated with an exception,
the result if this executable is also exceptional. The first occurring
exception is returned by this executable, and all other jobs are interrupted
if an exception occurs.
| Constructor Summary | |
|---|---|
MultiJobExecutable(Iterable<Job<? extends R>> jobs)
|
|
MultiJobExecutable(Job<? extends R> jobA,
Job<? extends R> jobB)
|
|
MultiJobExecutable(Job<? extends R> jobA,
Job<? extends R> jobB,
Job<? extends R> jobC)
|
|
MultiJobExecutable(Job<? extends R> jobA,
Job<? extends R> jobB,
Job<? extends R> jobC,
Job<? extends R> jobD)
|
|
| Method Summary | |
|---|---|
JobMonitor<Queue<R>> |
exec()
Executes and returns immediately, without waiting for completion. |
JobMonitor<Queue<R>> |
exec(JobTerminationHandler<Queue<R>> terminationHandler)
Executes and returns immediately, without waiting for completion. |
JobResult<Queue<R>> |
execAndWait()
Executes and waits for completion. |
Queue<R> |
execAndWaitThrowException()
Executes and waits for completion. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiJobExecutable(Job<? extends R> jobA,
Job<? extends R> jobB)
public MultiJobExecutable(Job<? extends R> jobA,
Job<? extends R> jobB,
Job<? extends R> jobC)
public MultiJobExecutable(Job<? extends R> jobA,
Job<? extends R> jobB,
Job<? extends R> jobC,
Job<? extends R> jobD)
public MultiJobExecutable(Iterable<Job<? extends R>> jobs)
| Method Detail |
|---|
public JobMonitor<Queue<R>> exec()
Executable
exec in interface Executable<Queue<R>>public JobMonitor<Queue<R>> exec(JobTerminationHandler<Queue<R>> terminationHandler)
Executable
exec in interface Executable<Queue<R>>terminationHandler - the handler for normal and exceptional termination of this job
public JobResult<Queue<R>> execAndWait()
throws InterruptedException
Executable
execAndWait in interface Executable<Queue<R>>InterruptedException
public Queue<R> execAndWaitThrowException()
throws InterruptedException,
Throwable
Executable
execAndWaitThrowException in interface Executable<Queue<R>>InterruptedException
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||