Package org.springframework.batch.repeat

Examples of org.springframework.batch.repeat.RepeatException


public class RepeatExceptionTests extends AbstractExceptionTests {

    @Override
  public Exception getException(String msg) throws Exception {
    return new RepeatException(msg);
  }
View Full Code Here


    return new RepeatException(msg);
  }

    @Override
  public Exception getException(String msg, Throwable t) throws Exception {
    return new RepeatException(msg, t);
  }
View Full Code Here

    try {
      template.iterate(new RepeatCallback() {
                @Override
        public RepeatStatus doInIteration(RepeatContext context) throws Exception {
          throw new RepeatException("typically thrown by nested repeat template", exception);
        }
      });
      fail();
    }
    catch (RepeatException expected) {
View Full Code Here

    }
    else if (throwable instanceof RuntimeException) {
      throw (RuntimeException) throwable;
    }
    else {
      throw new RepeatException("Exception in batch process", throwable);
    }
  }
View Full Code Here

      try {
        future = queue.take();
      }
      catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new RepeatException("InterruptedException while waiting for result.");
      }

      if (future.getError() != null) {
        state.getThrowables().add(future.getError());
        result = false;
View Full Code Here

      try {
        queue.expect();
      }
      catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new RepeatException("InterruptedException waiting for to acquire lock on input.");
      }
    }
View Full Code Here

        try {
          Object result = callback.doInIteration(null);
          calls.add(result);
        }
        catch (Exception e) {
          throw new RepeatException("Encountered exception in repeat.", e);
        }
        return RepeatStatus.CONTINUABLE;
      }
    });
    ((Advised) service).addAdvice(interceptor);
View Full Code Here

TOP

Related Classes of org.springframework.batch.repeat.RepeatException

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.