public class InfiniteLoopWriter extends StepExecutionListenerSupport implements ItemWriter<Object>
Constructor and Description |
---|
InfiniteLoopWriter() |
Modifier and Type | Method and Description |
---|---|
void |
beforeStep(StepExecution stepExecution)
Initialize the state of the listener with the
StepExecution from
the current scope. |
void |
write(List<? extends Object> items)
Process the supplied data element.
|
afterStep
public void beforeStep(StepExecution stepExecution)
StepExecutionListener
StepExecution
from
the current scope.beforeStep
in interface StepExecutionListener
beforeStep
in class StepExecutionListenerSupport
StepExecutionListener.beforeStep(StepExecution)
public void write(List<? extends Object> items) throws Exception
ItemWriter
write
in interface ItemWriter<Object>
Exception
- if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.Copyright © 2014 Pivotal. All rights reserved.