T - Type of Node/Task IDR - Type of Node/Task resultpublic abstract class Task<T extends Comparable<T>,R> extends Object implements Serializable
| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
abstract R |
execute()
Framework would call this method, when it comes for tasks to be executed.
|
T |
getId() |
void |
setConsiderExecutionError(boolean considerExecutionError)
sets whether execution errors should be considered or not?
|
void |
setId(T id)
Sets the new id
|
boolean |
shouldConsiderExecutionError() |
boolean |
shouldExecute(ExecutionResults<T,R> parentResults)
Defines whether or not this task should be executed
|
public void setId(T id)
id - the task idpublic T getId()
public abstract R execute()
public boolean shouldConsiderExecutionError()
public void setConsiderExecutionError(boolean considerExecutionError)
considerExecutionError - the new valuepublic boolean shouldExecute(ExecutionResults<T,R> parentResults)
parentResults - parent execution resultstrue If this task should be executed
false If the task should be skippedCopyright © 2016 Dexecutor. All rights reserved.