|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.job.Executables<R>
public class Executables<R>
The Executables class contains methods to create
executables from jobs,
runnables or callables. Invoking the
executables exec() or
execAndWait() method causes execution in a
new thread.
| Method Summary | ||
|---|---|---|
static
|
create(Callable<R> callable)
Creates a new executable from the given callable. |
|
static
|
create(Job<R> job)
Creates a new executable from the given job. |
|
static Executable<Void> |
create(Runnable runnable)
Creates a new executable from the given runnable. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <R> Executable<R> create(Job<R> job)
exec() and
execAndWait() methods of the returned
executable are processed in a new thread.
R - the return type of the jobjob - the job to convert into an executable
public static <R> Executable<R> create(Callable<R> callable)
exec() and
execAndWait() methods of the returned
executable are processed in a new thread.
R - the return type of the callablecallable - the callable to convert into an executable
public static Executable<Void> create(Runnable runnable)
exec() and
execAndWait() methods of the returned
executable are processed in a new thread.
runnable - the runnable to convert into an executable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||