congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SkipListenerFailedException
Code IndexAdd Tabnine to your IDE (free)

How to use
SkipListenerFailedException
in
org.springframework.batch.core.step.skip

Best Java code snippets using org.springframework.batch.core.step.skip.SkipListenerFailedException (Showing top 20 results out of 315)

origin: spring-projects/spring-batch

@Override
public Exception getException(String msg, RuntimeException cause, Throwable e) throws Exception {
  return new SkipListenerFailedException(msg, cause, e);
}
origin: spring-projects/spring-batch

/**
 * Convenience method for calling process skip policy, so that it can be
 * called from multiple places.
 *
 * @param policy the skip policy
 * @param e the cause of the skip
 * @param skipCount the current skip count
 */
private boolean shouldSkip(SkipPolicy policy, Throwable e, int skipCount) {
  try {
    return policy.shouldSkip(e, skipCount);
  }
  catch (SkipLimitExceededException ex) {
    throw ex;
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipPolicy.", ex, e);
  }
}
origin: spring-projects/spring-batch

/**
 * Convenience method for calling process skip listener, so that it can be
 * called from multiple places.
 *
 * @param item the item that is skipped
 * @param e the cause of the skip
 */
private void callProcessSkipListener(I item, Throwable e) {
  try {
    getListener().onSkipInProcess(item, e);
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
  }
}
origin: spring-projects/spring-batch

@Override
public void postProcess(StepContribution contribution, Chunk<I> chunk) {
  for (Exception e : chunk.getErrors()) {
    try {
      getListener().onSkipInRead(e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
}
origin: spring-projects/spring-batch

private void callSkipListeners(final Chunk<I> inputs, final Chunk<O> outputs) {
  for (SkipWrapper<I> wrapper : inputs.getSkips()) {
    I item = wrapper.getItem();
    if (item == null) {
      continue;
    }
    Throwable e = wrapper.getException();
    callProcessSkipListener(item, e);
  }
  for (SkipWrapper<O> wrapper : outputs.getSkips()) {
    Throwable e = wrapper.getException();
    try {
      getListener().onSkipInWrite(wrapper.getItem(), e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
  // Clear skips if we are possibly going to process this chunk again
  outputs.clearSkips();
  inputs.clearSkips();
}
origin: org.springframework.batch/org.springframework.batch.core

/**
 * Convenience method for calling process skip policy, so that it can be
 * called from multiple places.
 * 
 * @param policy the skip policy
 * @param e the cause of the skip
 * @param skipCount the current skip count
 */
private boolean shouldSkip(SkipPolicy policy, Throwable e, int skipCount) {
  try {
    return policy.shouldSkip(e, skipCount);
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipPolicy.", ex, e);
  }
}
origin: org.springframework.batch/spring-batch-core

/**
 * Convenience method for calling process skip policy, so that it can be
 * called from multiple places.
 *
 * @param policy the skip policy
 * @param e the cause of the skip
 * @param skipCount the current skip count
 */
private boolean shouldSkip(SkipPolicy policy, Throwable e, int skipCount) {
  try {
    return policy.shouldSkip(e, skipCount);
  }
  catch (SkipLimitExceededException ex) {
    throw ex;
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipPolicy.", ex, e);
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

/**
 * Convenience method for calling process skip policy, so that it can be
 * called from multiple places.
 *
 * @param policy the skip policy
 * @param e the cause of the skip
 * @param skipCount the current skip count
 */
private boolean shouldSkip(SkipPolicy policy, Throwable e, int skipCount) {
  try {
    return policy.shouldSkip(e, skipCount);
  }
  catch (SkipLimitExceededException ex) {
    throw ex;
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipPolicy.", ex, e);
  }
}
origin: apache/servicemix-bundles

/**
 * Convenience method for calling process skip policy, so that it can be
 * called from multiple places.
 *
 * @param policy the skip policy
 * @param e the cause of the skip
 * @param skipCount the current skip count
 */
private boolean shouldSkip(SkipPolicy policy, Throwable e, int skipCount) {
  try {
    return policy.shouldSkip(e, skipCount);
  }
  catch (SkipLimitExceededException ex) {
    throw ex;
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipPolicy.", ex, e);
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

/**
 * Convenience method for calling process skip listener, so that it can be
 * called from multiple places.
 *
 * @param item the item that is skipped
 * @param e the cause of the skip
 */
private void callProcessSkipListener(I item, Throwable e) {
  try {
    getListener().onSkipInProcess(item, e);
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
  }
}
origin: org.springframework.batch/org.springframework.batch.core

/**
 * Convenience method for calling process skip listener, so that it can be
 * called from multiple places.
 * 
 * @param item the item that is skipped
 * @param e the cause of the skip
 */
private void callProcessSkipListener(I item, Throwable e) {
  try {
    getListener().onSkipInProcess(item, e);
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
  }
}
origin: apache/servicemix-bundles

/**
 * Convenience method for calling process skip listener, so that it can be
 * called from multiple places.
 *
 * @param item the item that is skipped
 * @param e the cause of the skip
 */
private void callProcessSkipListener(I item, Throwable e) {
  try {
    getListener().onSkipInProcess(item, e);
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
  }
}
origin: org.springframework.batch/spring-batch-core

/**
 * Convenience method for calling process skip listener, so that it can be
 * called from multiple places.
 *
 * @param item the item that is skipped
 * @param e the cause of the skip
 */
private void callProcessSkipListener(I item, Throwable e) {
  try {
    getListener().onSkipInProcess(item, e);
  }
  catch (RuntimeException ex) {
    throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
  }
}
origin: org.springframework.batch/spring-batch-core

@Override
public void postProcess(StepContribution contribution, Chunk<I> chunk) {
  for (Exception e : chunk.getErrors()) {
    try {
      getListener().onSkipInRead(e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
public void postProcess(StepContribution contribution, Chunk<I> chunk) {
  for (Exception e : chunk.getErrors()) {
    try {
      getListener().onSkipInRead(e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
}
origin: org.springframework.batch/org.springframework.batch.core

@Override
public void postProcess(StepContribution contribution, Chunk<I> chunk) {
  for (Exception e : chunk.getErrors()) {
    try {
      getListener().onSkipInRead(e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
}
origin: apache/servicemix-bundles

@Override
public void postProcess(StepContribution contribution, Chunk<I> chunk) {
  for (Exception e : chunk.getErrors()) {
    try {
      getListener().onSkipInRead(e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
}
origin: org.springframework.batch/org.springframework.batch.core

private void callSkipListeners(final Chunk<I> inputs, final Chunk<O> outputs) {
  for (SkipWrapper<I> wrapper : inputs.getSkips()) {
    I item = wrapper.getItem();
    if (item == null) {
      continue;
    }
    Throwable e = wrapper.getException();
    callProcessSkipListener(item, e);
  }
  for (SkipWrapper<O> wrapper : outputs.getSkips()) {
    Throwable e = wrapper.getException();
    try {
      getListener().onSkipInWrite(wrapper.getItem(), e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
  // Clear skips if we are possibly going to process this chunk again
  outputs.clearSkips();
  inputs.clearSkips();
}
origin: org.springframework.batch/spring-batch-core

private void callSkipListeners(final Chunk<I> inputs, final Chunk<O> outputs) {
  for (SkipWrapper<I> wrapper : inputs.getSkips()) {
    I item = wrapper.getItem();
    if (item == null) {
      continue;
    }
    Throwable e = wrapper.getException();
    callProcessSkipListener(item, e);
  }
  for (SkipWrapper<O> wrapper : outputs.getSkips()) {
    Throwable e = wrapper.getException();
    try {
      getListener().onSkipInWrite(wrapper.getItem(), e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
  // Clear skips if we are possibly going to process this chunk again
  outputs.clearSkips();
  inputs.clearSkips();
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

private void callSkipListeners(final Chunk<I> inputs, final Chunk<O> outputs) {
  for (SkipWrapper<I> wrapper : inputs.getSkips()) {
    I item = wrapper.getItem();
    if (item == null) {
      continue;
    }
    Throwable e = wrapper.getException();
    callProcessSkipListener(item, e);
  }
  for (SkipWrapper<O> wrapper : outputs.getSkips()) {
    Throwable e = wrapper.getException();
    try {
      getListener().onSkipInWrite(wrapper.getItem(), e);
    }
    catch (RuntimeException ex) {
      throw new SkipListenerFailedException("Fatal exception in SkipListener.", ex, e);
    }
  }
  // Clear skips if we are possibly going to process this chunk again
  outputs.clearSkips();
  inputs.clearSkips();
}
org.springframework.batch.core.step.skipSkipListenerFailedException

Javadoc

Special exception to indicate a failure in a skip listener. These need special treatment in the framework in case a skip sends itself into an infinite loop.

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now