Codota Logo
BatchFailureListener.processFailure
Code IndexAdd Codota to your IDE (free)

How to use
processFailure
method
in
com.marklogic.client.datamovement.BatchFailureListener

Best Java code snippets using com.marklogic.client.datamovement.BatchFailureListener.processFailure (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: com.marklogic/marklogic-data-movement-components

@Override
public void processEvent(QueryBatch queryBatch) {
  try {
    exportBatch(queryBatch);
  } catch (Throwable t) {
    for (BatchFailureListener<QueryBatch> queryBatchFailureListener : getBatchFailureListeners()) {
      try {
        queryBatchFailureListener.processFailure(queryBatch, t);
      } catch (Throwable t2) {
        LoggerFactory.getLogger(getClass()).error("Exception thrown by an onFailure listener", t2);
      }
    }
  }
}
origin: marklogic/java-client-api

for ( BatchFailureListener<Batch<String>> listener : failureListeners ) {
 try {
  listener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onBatchFailure listener", t2);
  queryBatchFailureListener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onFailure listener", t2);
origin: marklogic/java-client-api

/**
 * The standard BatchListener action called by QueryBatcher.
 */
@Override
public void processEvent(QueryBatch batch) {
 try {
  batch.getClient().newDocumentManager().delete( batch.getItems() );
 } catch (Throwable t) {
  for ( BatchFailureListener<Batch<String>> listener : failureListeners ) {
   try {
    listener.processFailure(batch, t);
   } catch (Throwable t2) {
    logger.error("Exception thrown by an onBatchFailure listener", t2);
   }
  }
  for ( BatchFailureListener<QueryBatch> queryBatchFailureListener : queryBatchFailureListeners ) {
   try {
    queryBatchFailureListener.processFailure(batch, t);
   } catch (Throwable t2) {
    logger.error("Exception thrown by an onFailure listener", t2);
   }
  }
 }
}
origin: marklogic/java-client-api

for ( BatchFailureListener<Batch<String>> listener : failureListeners ) {
 try {
  listener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onBatchFailure listener", t2);
  queryBatchFailureListener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onFailure listener", t2);
origin: marklogic/java-client-api

for ( BatchFailureListener<QueryBatch> listener : failureListeners ) {
 try {
  listener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onFailure listener", t2);
origin: marklogic/java-client-api

for ( BatchFailureListener<Batch<String>> listener : getFailureListeners() ) {
 try {
  listener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onBatchFailure listener", t2);
  queryBatchFailureListener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onFailure listener", t2);
origin: marklogic/java-client-api

for ( BatchFailureListener<Batch<String>> listener : failureListeners ) {
 try {
  listener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onBatchFailure listener", t2);
  queryBatchFailureListener.processFailure(batch, t);
 } catch (Throwable t2) {
  logger.error("Exception thrown by an onFailure listener", t2);
com.marklogic.client.datamovementBatchFailureListenerprocessFailure

Javadoc

The method called when a failure occurs.

Popular methods of BatchFailureListener

    Popular in Java

    • Making http post requests using okhttp
    • getApplicationContext (Context)
    • setScale (BigDecimal)
      Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
    • scheduleAtFixedRate (Timer)
      Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
    • GridLayout (java.awt)
      The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
    • BufferedReader (java.io)
      Reads text from a character-input stream, buffering characters so as to provide for the efficient re
    • ReentrantLock (java.util.concurrent.locks)
      A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
    • Stream (java.util.stream)
      A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
    • BasicDataSource (org.apache.commons.dbcp)
      Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
    • IsNull (org.hamcrest.core)
      Is the value null?
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now