Package javax.batch.operations

Examples of javax.batch.operations.BatchRuntimeException


  @Override
  public void onRetryReadException(Exception ex) throws Exception {
    try {
      retryReadListener.onRetryReadException(ex);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here


  @Override
  public void onRetryWriteException(List<Object> items, Exception ex) throws Exception {
    try {
      retryWriteListener.onRetryWriteException(items, ex);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public void onRetryProcessException(Object item, Exception ex) throws Exception {
    try {
      retryProcessListener.onRetryProcessException(item, ex);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

            // Default is to rollback unless the classifier
            // allows us to continue
            throw new RetryException("Non-skippable exception in recoverer while reading", e);
          }

          throw new BatchRuntimeException(e);
        }
      }

    };
View Full Code Here

            // Default is to rollback unless the classifier
            // allows us to continue
            throw new RetryException("Non-skippable exception in recoverer while processing", e);
          }

          throw new BatchRuntimeException(e);
        }
      }
    };

    return batchRetryTemplate.execute(retryCallback, recoveryCallback);
View Full Code Here

  @Override
  public void beforeWrite(List<? extends S> items) {
    try {
      delegate.beforeWrite((List<Object>) items);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public void afterWrite(List<? extends S> items) {
    try {
      delegate.afterWrite((List<Object>) items);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public void onWriteError(Exception exception, List<? extends S> items) {
    try {
      delegate.onWriteError((List<Object>) items, exception);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public void beforeProcess(T item) {
    try {
      delegate.beforeProcess(item);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public void afterProcess(T item, S result) {
    try {
      delegate.afterProcess(item, result);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of javax.batch.operations.BatchRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.