Tabnine Logo
MulticasterBatchListener.onRetryProcessException
Code IndexAdd Tabnine to your IDE (free)

How to use
onRetryProcessException
method
in
org.springframework.batch.core.listener.MulticasterBatchListener

Best Java code snippets using org.springframework.batch.core.listener.MulticasterBatchListener.onRetryProcessException (Showing top 4 results out of 315)

origin: spring-projects/spring-batch

@Override
public O doWithRetry(RetryContext context) throws Exception {
  try {
    return doTransform(item);
  }
  catch (Exception e) {
    if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
      // If we are not re-throwing then we should check if
      // this is skippable
      contribution.incrementProcessSkipCount();
      logger.debug("Skipping after failed process with no rollback", e);
      // If not re-throwing then the listener will not be
      // called in next chunk.
      getListener().onSkipInProcess(item, e);
    } else {
      getListener().onRetryProcessException(item, e);
      if (rollbackClassifier.classify(e)) {
        // Default is to rollback unless the classifier
        // allows us to continue
        throw e;
      }
      else {
        throw e;
      }
    }
  }
  return null;
}
origin: apache/servicemix-bundles

@Override
public O doWithRetry(RetryContext context) throws Exception {
  try {
    return doTransform(item);
  }
  catch (Exception e) {
    if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
      // If we are not re-throwing then we should check if
      // this is skippable
      contribution.incrementProcessSkipCount();
      logger.debug("Skipping after failed process with no rollback", e);
      // If not re-throwing then the listener will not be
      // called in next chunk.
      getListener().onSkipInProcess(item, e);
    } else {
      getListener().onRetryProcessException(item, e);
      if (rollbackClassifier.classify(e)) {
        // Default is to rollback unless the classifier
        // allows us to continue
        throw e;
      }
      else {
        throw e;
      }
    }
  }
  return null;
}
origin: org.springframework.batch/spring-batch-core

@Override
public O doWithRetry(RetryContext context) throws Exception {
  try {
    return doTransform(item);
  }
  catch (Exception e) {
    if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
      // If we are not re-throwing then we should check if
      // this is skippable
      contribution.incrementProcessSkipCount();
      logger.debug("Skipping after failed process with no rollback", e);
      // If not re-throwing then the listener will not be
      // called in next chunk.
      getListener().onSkipInProcess(item, e);
    } else {
      getListener().onRetryProcessException(item, e);
      if (rollbackClassifier.classify(e)) {
        // Default is to rollback unless the classifier
        // allows us to continue
        throw e;
      }
      else {
        throw e;
      }
    }
  }
  return null;
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
public O doWithRetry(RetryContext context) throws Exception {
  try {
    return doTransform(item);
  }
  catch (Exception e) {
    if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
      // If we are not re-throwing then we should check if
      // this is skippable
      contribution.incrementProcessSkipCount();
      logger.debug("Skipping after failed process with no rollback", e);
      // If not re-throwing then the listener will not be
      // called in next chunk.
      getListener().onSkipInProcess(item, e);
    } else {
      getListener().onRetryProcessException(item, e);
      if (rollbackClassifier.classify(e)) {
        // Default is to rollback unless the classifier
        // allows us to continue
        throw e;
      }
      else {
        throw e;
      }
    }
  }
  return null;
}
org.springframework.batch.core.listenerMulticasterBatchListeneronRetryProcessException

Popular methods of MulticasterBatchListener

  • afterProcess
  • afterRead
  • afterWrite
  • beforeProcess
  • beforeRead
  • beforeWrite
  • onReadError
  • onSkipInProcess
  • onSkipInRead
  • onSkipInWrite
  • onWriteError
  • register
    Register the listener for callbacks on the appropriate interfaces implemented. Any StepListener can
  • onWriteError,
  • register,
  • onProcessError,
  • onRetryReadException,
  • onRetryWriteException,
  • getTargetException,
  • afterChunk,
  • afterStep,
  • beforeChunk

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JOptionPane (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
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