public class ThreadStepInterruptionPolicy extends java.lang.Object implements StepInterruptionPolicy
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
ThreadStepInterruptionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkInterrupted(StepExecution stepExecution)
Returns if the current job lifecycle has been interrupted by checking if
the current thread is interrupted.
|
public void checkInterrupted(StepExecution stepExecution) throws JobInterruptedException
checkInterrupted in interface StepInterruptionPolicystepExecution - the current context of the running step.JobInterruptedException - when the job has been interrupted.