javax.batch.api.chunk.listener
Interface RetryProcessListener<T>

Type Parameters:
T - specifies the type of item processed by the ItemProcessor paired with this listener.

public interface RetryProcessListener<T>

RetryProcessListener intercepts retry processing for an ItemProcessor.


Method Summary
 void onRetryProcessException(T item, Exception ex)
          The onRetryProcessException method receives control when a retryable exception is thrown from an ItemProcessor processItem method.
 

Method Detail

onRetryProcessException

void onRetryProcessException(T 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 - specifies the item passed to the ItemProcessor.
ex - specifies the exception thrown by the ItemProcessor.
Throws:
Exception - is thrown if an error occurs.


Copyright © 2013. All Rights Reserved.