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 |
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 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.