public abstract class AbstractItemWriteListener extends Object implements ItemWriteListener
Constructor and Description |
---|
AbstractItemWriteListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterWrite(List<Object> items)
Override this method if the ItemWriteListener
will do something after the items are written.
|
void |
beforeWrite(List<Object> items)
Override this method if the ItemWriteListener
will do something before the items are written.
|
void |
onWriteError(List<Object> items,
Exception ex)
Override this method if the ItemWriteListener
will do something when the ItemWriter writeItems
method throws an exception.
|
public void beforeWrite(List<Object> items) throws Exception
beforeWrite
in interface ItemWriteListener
items
- specifies the items about to be
written.Exception
- (or subclass) if an error occurs.public void afterWrite(List<Object> items) throws Exception
afterWrite
in interface ItemWriteListener
items
- specifies the items about to be
written.Exception
- (or subclass) if an error occurs.public void onWriteError(List<Object> items, Exception ex) throws Exception
onWriteError
in interface ItemWriteListener
items
- specifies the items about to be
written.ex
- specifies the exception thrown by the item
writer.Exception
- (or subclass) if an error occurs.Copyright © 2019 JBoss by Red Hat. All rights reserved.