|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.listener.StepExecutionListenerSupport
org.springframework.batch.core.step.NoWorkFoundStepExecutionListener
public class NoWorkFoundStepExecutionListener
Fails the step if no items have been processed ( item count is 0).
| Constructor Summary | |
|---|---|
NoWorkFoundStepExecutionListener()
|
|
| Method Summary | |
|---|---|
ExitStatus |
afterStep(StepExecution stepExecution)
Give a listener a chance to modify the exit status from a step. |
| Methods inherited from class org.springframework.batch.core.listener.StepExecutionListenerSupport |
|---|
beforeStep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoWorkFoundStepExecutionListener()
| Method Detail |
|---|
public ExitStatus afterStep(StepExecution stepExecution)
StepExecutionListenerExitStatus.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 in interface StepExecutionListenerafterStep in class StepExecutionListenerSupportExitStatus to combine with the normal value. Return
null to leave the old value unchanged.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||