类 ThreadStepInterruptionPolicy
- java.lang.Object
- org.springframework.batch.core.step.ThreadStepInterruptionPolicy
- 所有已实现的接口:
StepInterruptionPolicy
public class ThreadStepInterruptionPolicy extends java.lang.Object implements StepInterruptionPolicy
Policy that checks the current thread to see if it has been interrupted.- 作者:
- Lucas Ward, Dave Syer
字段概要
字段 修饰符和类型 字段 说明 protected static org.apache.commons.logging.Log
logger
构造器概要
构造器 构造器 说明 ThreadStepInterruptionPolicy()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
checkInterrupted(StepExecution stepExecution)
Returns if the current job lifecycle has been interrupted by checking if the current thread is interrupted.
字段详细资料
logger
protected static final org.apache.commons.logging.Log logger
构造器详细资料
ThreadStepInterruptionPolicy
public ThreadStepInterruptionPolicy()
方法详细资料
checkInterrupted
public void checkInterrupted(StepExecution stepExecution) throws JobInterruptedException
Returns if the current job lifecycle has been interrupted by checking if the current thread is interrupted.- 指定者:
checkInterrupted
在接口中StepInterruptionPolicy
- 参数:
stepExecution
- the current context of the running step.- 抛出:
JobInterruptedException
- when the job has been interrupted.