|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemWriteListener<S>
Listener interface for the writing of items. Implementations of this interface will be notified before, after, and in case of any exception thrown while writing a list of items.
Method Summary | |
---|---|
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() |
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. |
Method Detail |
---|
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()
items
- written itemsvoid onWriteError(Exception exception, List<? extends S> items)
exception
- thrown from ItemWriter
items
- attempted to be written.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |