Tabnine Logo
CompositeItemWriteListener.onWriteError
Code IndexAdd Tabnine to your IDE (free)

How to use
onWriteError
method
in
org.springframework.batch.core.listener.CompositeItemWriteListener

Best Java code snippets using org.springframework.batch.core.listener.CompositeItemWriteListener.onWriteError (Showing top 6 results out of 315)

origin: spring-projects/spring-batch

/**
 * @see ItemWriteListener#onWriteError(Exception, List)
 */
@Override
public void onWriteError(Exception ex, List<? extends S> items) {
  try {
    itemWriteListener.onWriteError(ex, items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in onWriteError.", e);
  }
}
origin: spring-projects/spring-batch

@Test
public void testOnWriteError() {
  List<Object> item = Collections.singletonList(new Object());
  Exception ex = new Exception();
  listener.onWriteError(ex, item);
  compositeListener.onWriteError(ex, item);
}
origin: org.springframework.batch/spring-batch-core

/**
 * @see ItemWriteListener#onWriteError(Exception, List)
 */
@Override
public void onWriteError(Exception ex, List<? extends S> items) {
  try {
    itemWriteListener.onWriteError(ex, items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in onWriteError.", e);
  }
}
origin: org.springframework.batch/org.springframework.batch.core

/**
 * @param ex
 * @param items
 * @see ItemWriteListener#onWriteError(Exception, List)
 */
public void onWriteError(Exception ex, List<? extends S> items) {
  try {
    itemWriteListener.onWriteError(ex, items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in onWriteError.", ex, e);
  }
}
origin: apache/servicemix-bundles

/**
 * @see ItemWriteListener#onWriteError(Exception, List)
 */
@Override
public void onWriteError(Exception ex, List<? extends S> items) {
  try {
    itemWriteListener.onWriteError(ex, items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in onWriteError.", e);
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

/**
 * @param ex
 * @param items
 * @see ItemWriteListener#onWriteError(Exception, List)
 */
@Override
public void onWriteError(Exception ex, List<? extends S> items) {
  try {
    itemWriteListener.onWriteError(ex, items);
  }
  catch (RuntimeException e) {
    throw new StepListenerFailedException("Error in onWriteError.", e);
  }
}
org.springframework.batch.core.listenerCompositeItemWriteListeneronWriteError

Javadoc

Call the registered listeners in reverse order, respecting and prioritising those that implement Ordered.

Popular methods of CompositeItemWriteListener

  • afterWrite
    Call the registered listeners in reverse order, respecting and prioritising those that implement Ord
  • beforeWrite
    Call the registered listeners in order, respecting and prioritising those that implement Ordered.
  • register
    Register additional listener.
  • <init>
  • setListeners
    Public setter for the listeners.

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Reference (javax.naming)
  • JList (javax.swing)
  • Github Copilot 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