T
- the result return type (gets encapsulated in an ExecutionResult)public interface StepTaskCallback<T>
Modifier and Type | Method and Description |
---|---|
void |
taskFailed(StepTask<T> failedTask,
ExecutionResult<T> failedResult)
Gets called if the
StepTask fails for some reason |
void |
taskFinished(ExecutionResult<T> result)
Gets called when the
StepTask finishes processing |
void taskFinished(ExecutionResult<T> result) throws Exception
StepTask
finishes processingresult
- the ExecutionrRsult
produced by the taskException
- if a problem occursvoid taskFailed(StepTask<T> failedTask, ExecutionResult<T> failedResult) throws Exception
StepTask
fails for some reasonfailedTask
- the that failedfailedResult
- the produced by
the failed task (might contain information pertaining to the
failure)Exception
- if a problem occursCopyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.