|
||||||||||
| 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(java.util.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(java.util.List<? extends S> items)
Called before ItemWriter.write(java.util.List) |
void |
onWriteError(java.lang.Exception exception,
java.util.List<? extends S> items)
Called if an error occurs while trying to write. |
| Method Detail |
|---|
void beforeWrite(java.util.List<? extends S> items)
ItemWriter.write(java.util.List)
items - to be writtenvoid afterWrite(java.util.List<? extends S> items)
ItemWriter.write(java.util.List) This will be
called before any transaction is committed, and before
ChunkListener.afterChunk()
items - written items
void onWriteError(java.lang.Exception exception,
java.util.List<? extends S> items)
exception - thrown from ItemWriteritems - attempted to be written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||