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

public Interface RetryProcessListener


RetryProcessListener intercepts retry processing for an ItemProcessor.

Method Summary

Modifier and TypeMethod and Description
public void
onRetryProcessException(Object
specifies the item passed to the ItemProcessor.
item
,
Exception
specifies the exception thrown by the ItemProcessor.
ex
)

The onRetryProcessException method receives control when a retryable exception is thrown from an ItemProcessor processItem method.

Method Detail

onRetryProcessExceptionback to summary
public void onRetryProcessException(Object item, Exception ex) throws Exception

The onRetryProcessException method receives control when a retryable exception is thrown from an ItemProcessor processItem method. This method receives the exception and the item being processed as inputs. This method receives control in same checkpoint scope as the ItemProcessor. If this method throws a an exception, the job ends in the FAILED state.

Parameters
item:Object

specifies the item passed to the ItemProcessor.

ex:Exception

specifies the exception thrown by the ItemProcessor.

Exceptions
Exception:
is thrown if an error occurs.