@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { for (Iterator<RetryProcessListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryProcessListener listener = iterator.next(); listener.onRetryProcessException(item, ex); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { try { retryProcessListener.onRetryProcessException(item, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { try { retryProcessListener.onRetryProcessException(item, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { for (Iterator<RetryProcessListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryProcessListener listener = iterator.next(); listener.onRetryProcessException(item, ex); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { for (Iterator<RetryProcessListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryProcessListener listener = iterator.next(); listener.onRetryProcessException(item, ex); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { try { retryProcessListener.onRetryProcessException(item, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { try { retryProcessListener.onRetryProcessException(item, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { for (Iterator<RetryProcessListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryProcessListener listener = iterator.next(); listener.onRetryProcessException(item, ex); } } }
@Override public void onRetryProcessException(Object item, Exception ex) { try { this.delegate.onRetryProcessException(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
@Override public void onRetryProcessException(Object item, Exception ex) { try { this.delegate.onRetryProcessException(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
@Override public void onRetryProcessException(Object item, Exception ex) { try { this.delegate.onRetryProcessException(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
/** * Handle exception from a process failure. */ public void handleExceptionProcess(final Exception e, final Object w) { if (isRetryLimitReached() || !isRetryable(e)) { throw new BatchContainerRuntimeException(e); } _retryException = e; // Retry it. Log it. Call the RetryListener. ++_retryCount; if (_retryProcessListeners != null) { for (final RetryProcessListener retryProcessListenerProxy : _retryProcessListeners) { try { retryProcessListenerProxy.onRetryProcessException(w, e); } catch (Exception e1) { ExceptionConfig.wrapBatchException(e1); } } } }
} else if (processingInfo.itemState == ItemState.TO_RETRY) { for (final RetryProcessListener l : retryProcessListeners) { l.onRetryProcessException(itemRead, e);