类 NoWorkFoundStepExecutionListener
- java.lang.Object
- org.springframework.batch.core.listener.StepExecutionListenerSupport
- org.springframework.batch.core.step.NoWorkFoundStepExecutionListener
- 所有已实现的接口:
StepExecutionListener
,StepListener
public class NoWorkFoundStepExecutionListener extends StepExecutionListenerSupport
Fails the step if no items have been processed ( item count is 0).- 作者:
- Robert Kasanicky
构造器概要
构造器 构造器 说明 NoWorkFoundStepExecutionListener()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ExitStatus
afterStep(StepExecution stepExecution)
Give a listener a chance to modify the exit status from a step.从类继承的方法 org.springframework.batch.core.listener.StepExecutionListenerSupport
beforeStep
构造器详细资料
NoWorkFoundStepExecutionListener
public NoWorkFoundStepExecutionListener()
方法详细资料
afterStep
public ExitStatus afterStep(StepExecution stepExecution)
从接口复制的说明:StepExecutionListener
Give a listener a chance to modify the exit status from a step. The value returned will be combined with the normal exit status usingExitStatus.and(ExitStatus)
. Called after execution of step's processing logic (both successful or failed). Throwing exception in this method has no effect, it will only be logged.- 指定者:
afterStep
在接口中StepExecutionListener
- 覆盖:
afterStep
在类中StepExecutionListenerSupport
- 参数:
stepExecution
-StepExecution
instance.- 返回:
- an
ExitStatus
to combine with the normal value. Returnnull
to leave the old value unchanged.