|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.job.Jobs<R>
public class Jobs<R>
The Jobs class contains methods to create
jobs from runnables and
callables.
| Method Summary | ||
|---|---|---|
static
|
create(Callable<R> callable)
Creates a new executable from the given callable. |
|
static Job<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> Job<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 Job<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 | |||||||||