|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.job.AbstractJob<R>
R - The return value type of the resultpublic abstract class AbstractJob<R>
AbstractJob is an abstract base implementation for most jobs
implementing both Job and Executable.
| Constructor Summary | |
|---|---|
AbstractJob()
|
|
| Method Summary | |
|---|---|
JobMonitor<R> |
exec()
Executes the job in a new thread. |
JobMonitor<R> |
exec(JobTerminationHandler<R> terminationHandler)
Executes the job in a new thread. |
JobResult<R> |
execAndWait()
Executes the job in a new thread and waits for completion. |
R |
execAndWaitThrowException()
Executes the job in a new thread and waits for completion. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.javasoft.job.Job |
|---|
run |
| Constructor Detail |
|---|
public AbstractJob()
| Method Detail |
|---|
public JobMonitor<R> exec()
exec in interface Executable<R>public JobMonitor<R> exec(JobTerminationHandler<R> terminationHandler)
exec in interface Executable<R>terminationHandler - the handler for normal and exceptional
termination of this job
public JobResult<R> execAndWait()
throws InterruptedException
execAndWait in interface Executable<R>InterruptedException
public R execAndWaitThrowException()
throws InterruptedException,
Throwable
execAndWaitThrowException in interface Executable<R>InterruptedException
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||