public interface ItemWriteListener<S> extends StepListener
Modifier and Type | Method and Description |
---|---|
void |
afterWrite(List<? extends S> items)
Called after
ItemWriter.write(java.util.List) This will be
called before any transaction is committed, and before
ChunkListener.afterChunk(ChunkContext) |
void |
beforeWrite(List<? extends S> items)
Called before
ItemWriter.write(java.util.List) |
void |
onWriteError(Exception exception,
List<? extends S> items)
Called if an error occurs while trying to write.
|
void beforeWrite(List<? extends S> items)
ItemWriter.write(java.util.List)
items
- to be writtenvoid afterWrite(List<? extends S> items)
ItemWriter.write(java.util.List)
This will be
called before any transaction is committed, and before
ChunkListener.afterChunk(ChunkContext)
items
- written itemsvoid onWriteError(Exception exception, List<? extends S> items)
exception
- thrown from ItemWriter
items
- attempted to be written.Copyright © 2014 Pivotal. All rights reserved.