接口 StepHandler
- 所有已知实现类:
JsrStepHandler
,SimpleStepHandler
public interface StepHandler
- 作者:
- Dave Syer
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StepExecution
handleStep(Step step, JobExecution jobExecution)
Handle a step and return the execution for it.
方法详细资料
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 theStepExecution
if required (e.g. at least it needs to be added to a repository before the step can be executed).- 参数:
step
- aStep
jobExecution
- aJobExecution
- 返回:
- an execution of the step
- 抛出:
JobInterruptedException
- if there is an interruptionJobRestartException
- if there is a problem restarting a failed stepStartLimitExceededException
- if the step exceeds its start limit- 另请参阅:
Job.execute(JobExecution)
,Step.execute(StepExecution)