congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BatchFailureListener
Code IndexAdd Tabnine to your IDE (free)

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

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

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.datamovementBatchFailureListener

Javadoc

A generic interface for listeners which process failures on batches. Currently only WriteFailureListener implements since QueryBatcher has no batch when the query fails.

Most used methods

  • processFailure

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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