T - Type of Node/Task IDR - Type of Node/Task resultpublic interface ExecutionEngine<T,R>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAnyTaskInError() |
boolean |
isDistributed()
Hints dexecutor if the execution engine is distributed or not
|
ExecutionResult<T,R> |
processResult()
This method is expected to block, if there are no execution result, otherwise return the result immediately.
|
void |
setExecutionListener(ExecutionListener<T,R> listener)
Sets the ExecutionListener
|
void |
submit(Task<T,R> task)
Submits the task for execution, the method is expected to return immediately.
|
void submit(Task<T,R> task)
task - to be submitted for executionExecutionResult<T,R> processResult() throws TaskExecutionException
TaskExecutionException - if for some reason result can't be processedboolean isDistributed()
true If this execution engine is a distributed
false it it is non distributedboolean isAnyTaskInError()
true if there are any task errors identified till that instance of time
false otherwise.void setExecutionListener(ExecutionListener<T,R> listener)
listener - to notifyCopyright © 2016–2018 Dexecutor. All rights reserved.