@Override public void onRetryReadException(Exception ex) throws Exception { for (Iterator<RetryReadListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryReadListener listener = iterator.next(); listener.onRetryReadException(ex); } } }
@Override public void onRetryReadException(Exception ex) throws Exception { try { retryReadListener.onRetryReadException(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryReadException(Exception ex) throws Exception { for (Iterator<RetryReadListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryReadListener listener = iterator.next(); listener.onRetryReadException(ex); } } }
@Override public void onRetryReadException(Exception ex) throws Exception { try { retryReadListener.onRetryReadException(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryReadException(Exception ex) throws Exception { try { retryReadListener.onRetryReadException(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryReadException(Exception ex) throws Exception { for (Iterator<RetryReadListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryReadListener listener = iterator.next(); listener.onRetryReadException(ex); } } }
@Override public void onRetryReadException(Exception ex) throws Exception { try { retryReadListener.onRetryReadException(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryReadException(Exception ex) throws Exception { for (Iterator<RetryReadListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryReadListener listener = iterator.next(); listener.onRetryReadException(ex); } } }
@Override public void onRetryReadException(Exception ex) { try { this.delegate.onRetryReadException(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
@Override public void onRetryReadException(Exception ex) { try { this.delegate.onRetryReadException(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
@Override public void onRetryReadException(Exception ex) { try { this.delegate.onRetryReadException(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
/** * Handle exception from a read failure. */ public void handleExceptionRead(final Exception e) { if (isRetryLimitReached() || !isRetryable(e)) { throw new BatchContainerRuntimeException(e); } _retryException = e; // Retry it. Log it. Call the RetryListener. ++_retryCount; if (_retryReadListeners != null) { for (final RetryReadListener retryReadListenerProxy : _retryReadListeners) { try { retryReadListenerProxy.onRetryReadException(e); } catch (Exception e1) { ExceptionConfig.wrapBatchException(e1); } } } }
} else if (processingInfo.itemState == ItemState.TO_RETRY) { for (final RetryReadListener l : retryReadListeners) { l.onRetryReadException(e);