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

public Interface RetryWriteListener

Imports
java.util.List

RetryWriteListener intercepts retry processing for an ItemWriter.

Method Summary

Modifier and TypeMethod and Description
public void
onRetryWriteException(List<Object>
specify the items passed to an item writer.
items
,
Exception
specifies the exception thrown by an item writer.
ex
)

The onRetryWriteException method receives control when a retryable exception is thrown from an ItemWriter writeItems method.

Method Detail

onRetryWriteExceptionback to summary
public void onRetryWriteException(List<Object> items, Exception ex) throws Exception

The onRetryWriteException method receives control when a retryable exception is thrown from an ItemWriter writeItems method. This method receives the exception and the list of items being written as inputs. This method receives control in same checkpoint scope as the ItemWriter. If this method throws a an exception, the job ends in the FAILED state.

Parameters
items:List<Object>

specify the items passed to an item writer.

ex:Exception

specifies the exception thrown by an item writer.

Exceptions
Exception:
is thrown if an error occurs.