Package javax.batch.api.chunk.listener
Interface SkipWriteListener
-
public interface SkipWriteListener
SkipWriteListener intercepts skippable itemWriter exception handling.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onSkipWriteItem(java.util.List<java.lang.Object> items, java.lang.Exception ex)
The onSkipWriteItems method receives control when a skippable exception is thrown from an ItemWriter writeItems method.
-
-
-
Method Detail
-
onSkipWriteItem
void onSkipWriteItem(java.util.List<java.lang.Object> items, java.lang.Exception ex) throws java.lang.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:
java.lang.Exception
- is thrown if an error occurs.
-
-