|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessExecutor
An Executor
that provides methods to manage termination and
methods that can produce a Progress
for tracking one or more
asynchronous tasks.
Method submit extends base method ExecutorService.submit(java.util.concurrent.Callable
by creating and returning a
Progress
that can be used to track how a process
is doing in addition to cancelling execution and/or waiting
for completion.
Method Summary | |
---|---|
Progress |
submit(Process task,
java.util.Map<java.lang.String,java.lang.Object> input)
Submits a process for execution and returns a Progress representing the pending results of the task. |
Methods inherited from interface java.util.concurrent.ExecutorService |
---|
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit |
Methods inherited from interface java.util.concurrent.Executor |
---|
execute |
Method Detail |
---|
Progress submit(Process task, java.util.Map<java.lang.String,java.lang.Object> input)
If you would like to immediately block waiting for a task, you can use constructions of the form result = exec.submit(aProcess).get();
Note: The Processors
class includes a set of methods
that can convert some other common closure-like objects,
for example, Callable
to Process
form so
they can be submitted.
task
- the task to submit
java.util.concurrent.RejectedExecutionException
- if task cannot be scheduled for execution
java.lang.NullPointerException
- if task null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |