类 JobInterruptedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- org.springframework.batch.core.JobExecutionException
- org.springframework.batch.core.JobInterruptedException
- 所有已实现的接口:
java.io.Serializable
public class JobInterruptedException extends JobExecutionException
Exception to indicate the the job has been interrupted. The exception state indicated is not normally recoverable by batch application clients, but internally it is useful to force a check. The exception will often be wrapped in a runtime exception (usuallyUnexpectedJobExecutionException
before reaching the client.- 作者:
- Lucas Ward, Dave Syer
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 JobInterruptedException(java.lang.String msg)
JobInterruptedException(java.lang.String msg, BatchStatus status)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BatchStatus
getStatus()
The desired status of the surrounding execution after the interruption.
构造器详细资料
JobInterruptedException
public JobInterruptedException(java.lang.String msg)
JobInterruptedException
public JobInterruptedException(java.lang.String msg, BatchStatus status)
方法详细资料
getStatus
public BatchStatus getStatus()
The desired status of the surrounding execution after the interruption.- 返回:
- the status of the interruption (default STOPPED)