public interface StepInterruptionPolicy
Step
implementations to check if a job has been interrupted.Modifier and Type | Method and Description |
---|---|
void |
checkInterrupted(StepExecution stepExecution)
Has the job been interrupted? If so then throw a
JobInterruptedException . |
void checkInterrupted(StepExecution stepExecution) throws JobInterruptedException
JobInterruptedException
.stepExecution
- the current context of the running step.JobInterruptedException
- when the job has been interrupted.