Top Description Methods
jakarta.batch.api.chunk.listener

public Interface SkipWriteListener

Imports
java.util.List

SkipWriteListener intercepts skippable itemWriter exception handling.

Method Summary

Modifier and TypeMethod and Description
public void
onSkipWriteItem(List<Object>
specifies the list of item passed to the item writer.
items
,
Exception
specifies the exception thrown by the ItemWriter.
ex
)

The onSkipWriteItems method receives control when a skippable exception is thrown from an ItemWriter writeItems method.

Method Detail

onSkipWriteItemback to summary
public void onSkipWriteItem(List<Object> 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:List<Object>

specifies the list of item passed to the item writer.

ex:Exception

specifies the exception thrown by the ItemWriter.

Exceptions
Exception:
is thrown if an error occurs.