|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractExecutorService
ThreadPoolExecutor
ThreadPoolProcessExecutor
public class ThreadPoolProcessExecutor
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ThreadPoolExecutor |
---|
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy |
Constructor Summary | |
---|---|
ThreadPoolProcessExecutor(int nThreads,
ThreadFactory threadFactory)
|
Method Summary | |
---|---|
Progress |
submit(Process task,
Map<String,Object> input)
Submits a process for execution and returns a Progress representing the pending results of the task. |
Methods inherited from class AbstractExecutorService |
---|
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ExecutorService |
---|
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit |
Methods inherited from interface Executor |
---|
execute |
Constructor Detail |
---|
public ThreadPoolProcessExecutor(int nThreads, ThreadFactory threadFactory)
Method Detail |
---|
public Progress submit(Process task, Map<String,Object> input)
ProcessExecutor
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.
submit
in interface ProcessExecutor
task
- the task to submit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |