接口 StepInterruptionPolicy
- 所有已知实现类:
ThreadStepInterruptionPolicy
public interface StepInterruptionPolicy
Strategy interface for an interruption policy. This policy allowsStep
implementations to check if a job has been interrupted.- 作者:
- Lucas Ward
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
checkInterrupted(StepExecution stepExecution)
Has the job been interrupted?
方法详细资料
checkInterrupted
void checkInterrupted(StepExecution stepExecution) throws JobInterruptedException
Has the job been interrupted? If so then throw aJobInterruptedException
.- 参数:
stepExecution
- the current context of the running step.- 抛出:
JobInterruptedException
- when the job has been interrupted.