Interface StepInterruptionPolicy
- All Known Implementing Classes:
ThreadStepInterruptionPolicy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface for an interruption policy. This policy allows
Step
implementations to check if a job has been interrupted.- Author:
- Lucas Ward, Daegeon Lee
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInterrupted(StepExecution stepExecution) Has the job been interrupted?
-
Method Details
-
checkInterrupted
Has the job been interrupted? If so then throw aJobInterruptedException.- Parameters:
stepExecution- the current context of the running step.- Throws:
JobInterruptedException- when the job has been interrupted.
-