|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.batch.api.chunk.listener.AbstractItemWriteListener<T>
T - specifies the item type written by the ItemWriter paired with this
ItemWriteListener.public abstract class AbstractItemWriteListener<T>
The AbstractItemWriteListener provides default implementations of less commonly implemented methods.
| Constructor Summary | |
|---|---|
AbstractItemWriteListener()
|
|
| Method Summary | |
|---|---|
void |
afterWrite(List<T> items)
Override this method if the ItemWriteListener will do something after the items are written. |
void |
beforeWrite(List<T> items)
Override this method if the ItemWriteListener will do something before the items are written. |
void |
onWriteError(List<T> items,
Exception ex)
Override this method if the ItemWriteListener will do something when the ItemWriter writeItems method throws an exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractItemWriteListener()
| Method Detail |
|---|
public void beforeWrite(List<T> items)
throws Exception
beforeWrite in interface ItemWriteListener<T>items - specifies the items about to be written.
Exception - (or subclass) if an error occurs.
public void afterWrite(List<T> items)
throws Exception
afterWrite in interface ItemWriteListener<T>items - specifies the items about to be written.
Exception - (or subclass) if an error occurs.
public void onWriteError(List<T> items,
Exception ex)
throws Exception
onWriteError in interface ItemWriteListener<T>items - specifies the items about to be written.ex - specifies the exception thrown by the item writer.
Exception - (or subclass) if an error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||