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
- public T getId()
public abstract R execute()
public boolean shouldConsiderExecutionError()
public void setConsiderExecutionError(boolean considerExecutionError)
considerExecutionError
- public boolean shouldExecute(ExecutionResults<T,R> parentResults)
parentResults
- true
If this task should be executed
false
If the task should be skippedCopyright © 2016 Dexecutor. All rights reserved.