|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
T - specifies the type processed by an item reader.public interface ItemWriteListener<T>
ItemWriteListener intercepts item writer processing.
| Method Summary | |
|---|---|
void |
afterWrite(List<T> items)
The afterWrite method receives control after an item writer writes its items. |
void |
beforeWrite(List<T> items)
The beforeWrite method receives control before an item writer is called to write its items. |
void |
onWriteError(List<T> items,
Exception ex)
The onWriteError method receives control after an item writer writeItems throws an exception. |
| Method Detail |
|---|
void beforeWrite(List<T> items)
throws Exception
items - specifies the items about to be written.
Exception - is thrown if an error occurs.
void afterWrite(List<T> items)
throws Exception
items - specifies the items about to be written.
Exception - is thrown if an error occurs.
void onWriteError(List<T> items,
Exception ex)
throws Exception
items - specifies the items about to be written.ex - specifies the exception thrown by the item writer.
Exception - is thrown if an error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||