T
- Type of Node/Task IDR
- Type of Node/Task resultpublic interface ExecutionEngine<T extends Comparable<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 |
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
boolean 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.Copyright © 2016 Dexecutor. All rights reserved.