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 java.lang.Exception
StepTask
finishes processingresult
- the ExecutionrRsult
produced by the taskjava.lang.Exception
- if a problem occursvoid taskFailed(StepTask<T> failedTask, ExecutionResult<T> failedResult) throws java.lang.Exception
StepTask
fails for some reasonfailedTask
- the that failedfailedResult
- the produced by
the failed task (might contain information pertaining to the
failure)java.lang.Exception
- if a problem occurs