Interface StepHandler
- All Known Implementing Classes:
SimpleStepHandler
public interface StepHandler
- Author:
- Dave Syer
-
Method Summary
Modifier and TypeMethodDescriptionhandleStep(Step step, JobExecution jobExecution) Handle a step and return the execution for it.
-
Method Details
-
handleStep
StepExecution handleStep(Step step, JobExecution jobExecution) throws JobInterruptedException, JobRestartException, StartLimitExceededException Handle a step and return the execution for it. Does not save theJobExecution, but should manage the persistence of theStepExecutionif required (e.g. at least it needs to be added to a repository before the step can be executed).- Parameters:
step- aStepjobExecution- aJobExecution- Returns:
- an execution of the step
- Throws:
JobInterruptedException- if there is an interruptionJobRestartException- if there is a problem restarting a failed stepStartLimitExceededException- if the step exceeds its start limit- See Also:
-