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

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

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

origin: spring-projects/spring-batch

/**
 * @param item the input item
 * @return the result of the processing
 * @throws Exception thrown if error occurs.
 */
protected final O doProcess(I item) throws Exception {
  if (itemProcessor == null) {
    @SuppressWarnings("unchecked")
    O result = (O) item;
    return result;
  }
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: spring-projects/spring-batch

/**
 * Implements processing and all related listener calls.
 *
 * @param item the item to be processed
 * @return the processed item
 * @throws Exception thrown if error occurs during processing.
 */
protected final O doTransform(I item) throws Exception {
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: org.springframework.batch/spring-batch-core

/**
 * Implements processing and all related listener calls.
 *
 * @param item the item to be processed
 * @return the processed item
 * @throws Exception thrown if error occurs during processing.
 */
protected final O doTransform(I item) throws Exception {
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: apache/servicemix-bundles

/**
 * @param item the input item
 * @return the result of the processing
 * @throws Exception thrown if error occurs.
 */
protected final O doProcess(I item) throws Exception {
  if (itemProcessor == null) {
    @SuppressWarnings("unchecked")
    O result = (O) item;
    return result;
  }
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: apache/servicemix-bundles

/**
 * Implements processing and all related listener calls.
 *
 * @param item the item to be processed
 * @return the processed item
 * @throws Exception thrown if error occurs during processing.
 */
protected final O doTransform(I item) throws Exception {
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

/**
 * Implements processing and all related listener calls.
 *
 * @param item the item to be processed
 * @return the processed item
 * @throws Exception
 */
protected final O doTransform(I item) throws Exception {
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: org.springframework.batch/spring-batch-core

/**
 * @param item the input item
 * @return the result of the processing
 * @throws Exception thrown if error occurs.
 */
protected final O doProcess(I item) throws Exception {
  if (itemProcessor == null) {
    @SuppressWarnings("unchecked")
    O result = (O) item;
    return result;
  }
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: org.springframework.batch/org.springframework.batch.core

/**
 * @param item the input item
 * @return the result of the processing
 * @throws Exception
 */
protected final O doProcess(I item) throws Exception {
  if (itemProcessor==null) {
    @SuppressWarnings("unchecked")
    O result = (O) item;
    return result;
  }
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

/**
 * @param item the input item
 * @return the result of the processing
 * @throws Exception
 */
protected final O doProcess(I item) throws Exception {
  if (itemProcessor == null) {
    @SuppressWarnings("unchecked")
    O result = (O) item;
    return result;
  }
  try {
    listener.beforeProcess(item);
    O result = itemProcessor.process(item);
    listener.afterProcess(item, result);
    return result;
  }
  catch (Exception e) {
    listener.onProcessError(item, e);
    throw e;
  }
}
org.springframework.batch.core.listenerMulticasterBatchListeneronProcessError

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,
  • onRetryProcessException,
  • onRetryReadException,
  • onRetryWriteException,
  • getTargetException,
  • afterChunk,
  • afterStep,
  • beforeChunk

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best plugins for Eclipse
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