javax.batch.api.chunk.listener
Interface SkipWriteListener<T>
- Type Parameters:
T - specifies the item type processed
by the itemWriter.
public interface SkipWriteListener<T>
SkipWriteListener intercepts skippable
itemWriter exception handling.
|
Method Summary |
void |
onSkipWriteItem(List<T> items,
Exception ex)
The onSkipWriteItems method receives control when a
skippable exception is thrown from an ItemWriter
writeItems method. |
onSkipWriteItem
void onSkipWriteItem(List<T> items,
Exception ex)
throws Exception
- The onSkipWriteItems method receives control when a
skippable exception is thrown from an ItemWriter
writeItems method. This
method receives the exception and the items that were
skipped as an input.
- Parameters:
items - specifies the list of item passed to the
item writer.ex - specifies the exception thrown by the
ItemWriter.
- Throws:
Exception - is thrown if an error occurs.
Copyright © 2013. All Rights Reserved.