org.springframework.batch.core.step

## Interface StepInterruptionPolicy

- All Known Implementing Classes:
    ThreadStepInterruptionPolicy

      public interface StepInterruptionPolicy

  Strategy interface for an interruption policy. This policy allows `Step` implementations to check if a job has been interrupted.
  Author:
    Lucas Ward

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `checkInterrupted(StepExecution stepExecution)` Has the job been interrupted? If so then throw a `JobInterruptedException`.

- - ### Method Detail

    - #### checkInterrupted

          void checkInterrupted(StepExecution stepExecution)
                         throws JobInterruptedException

      Has the job been interrupted? If so then throw a `JobInterruptedException`.
      Parameters:
        `stepExecution` - the current context of the running step.
      Throws:
        `JobInterruptedException` - when the job has been interrupted.