@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { try { retryWriteListener.onRetryWriteException(items, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { for (Iterator<RetryWriteListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryWriteListener listener = iterator.next(); listener.onRetryWriteException(items, ex); } } }
@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { for (Iterator<RetryWriteListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryWriteListener listener = iterator.next(); listener.onRetryWriteException(items, ex); } } }
@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { try { retryWriteListener.onRetryWriteException(items, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { for (Iterator<RetryWriteListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryWriteListener listener = iterator.next(); listener.onRetryWriteException(items, ex); } } }
@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { try { retryWriteListener.onRetryWriteException(items, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { for (Iterator<RetryWriteListener> iterator = listeners.reverse(); iterator.hasNext();) { RetryWriteListener listener = iterator.next(); listener.onRetryWriteException(items, ex); } } }
@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { try { retryWriteListener.onRetryWriteException(items, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryWriteException(List items, Exception ex) { try { this.delegate.onRetryWriteException(items, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
@Override public void onRetryWriteException(List items, Exception ex) { try { this.delegate.onRetryWriteException(items, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
@Override public void onRetryWriteException(List items, Exception ex) { try { this.delegate.onRetryWriteException(items, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } } }
/** * Handle exception from a write failure. */ public void handleExceptionWrite(final Exception e, final List<Object> w) { if (isRetryLimitReached() || !isRetryable(e)) { throw new BatchContainerRuntimeException(e); } // Retry it. Log it. Call the RetryListener. _retryException = e; ++_retryCount; if (_retryWriteListeners != null) { for (final RetryWriteListener retryWriteListenerProxy : _retryWriteListeners) { try { retryWriteListenerProxy.onRetryWriteException(w, e); } catch (Exception e1) { ExceptionConfig.wrapBatchException(e1); } } } }
l.onRetryWriteException(outputList, e);