public interface ItemWriteListener
Modifier and Type | Method and Description |
---|---|
void |
afterWrite(List<Object> items)
The afterWrite method receives control after an
item writer writes its items.
|
void |
beforeWrite(List<Object> items)
The beforeWrite method receives control before
an item writer is called to write its items.
|
void |
onWriteError(List<Object> items,
Exception ex)
The onWriteError method receives control after an
item writer writeItems throws an exception.
|
void beforeWrite(List<Object> items) throws Exception
items
- specifies the items about to be
written.Exception
- is thrown if an error occurs.void afterWrite(List<Object> items) throws Exception
items
- specifies the items written by the item writer.Exception
- is thrown if an error occurs.void onWriteError(List<Object> items, Exception ex) throws Exception
items
- specifies the items which the item writer
attempted to write.ex
- specifies the exception thrown by the item
writer.Exception
- is thrown if an error occurs.Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.