Codota Logo
BuildContext.getErrorHandler
Code IndexAdd Codota to your IDE (free)

How to use
getErrorHandler
method
in
org.hibernate.search.spi.BuildContext

Best Java code snippets using org.hibernate.search.spi.BuildContext.getErrorHandler (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-search

public ElasticsearchWorkProcessor(BuildContext context,
    ElasticsearchClient client, GsonProvider gsonProvider, ElasticsearchWorkFactory workFactory) {
  this.errorHandler = context.getErrorHandler();
  this.client = client;
  this.gsonProvider = gsonProvider;
  this.workFactory = workFactory;
  this.parallelWorkExecutionContext =
      new ImmutableElasticsearchWorkExecutionContext( client, gsonProvider );
  /*
   * The following orchestrator doesn't require a strict execution ordering
   * (because it's mainly used by the mass indexer, which already takes care of
   * ordering works properly and waiting for pending works when necessary).
   * Thus we use a parallel orchestrator to maximize throughput.
   * Also, since works are not applied in order, and since API users have no way
   * to determine whether a work finished or not, explicit refreshes are useless,
   * so we disable refreshes both in the bulk API call and in the execution contexts.
   */
  this.streamOrchestrator = createBatchingSharedOrchestrator(
      "Elasticsearch stream work orchestrator",
      STREAM_MAX_CHANGESETS_PER_BATCH,
      false, // Do not care about ordering when queuing changesets
      createParallelOrchestrator( this::createIndexMonitorBufferingWorkExecutionContext, STREAM_MIN_BULK_SIZE, false ) );
}
origin: org.hibernate/hibernate-search-elasticsearch

public ElasticsearchWorkProcessor(BuildContext context,
    ElasticsearchClient client, GsonProvider gsonProvider, ElasticsearchWorkFactory workFactory) {
  this.errorHandler = context.getErrorHandler();
  this.client = client;
  this.gsonProvider = gsonProvider;
  this.workFactory = workFactory;
  this.parallelWorkExecutionContext =
      new ImmutableElasticsearchWorkExecutionContext( client, gsonProvider );
  /*
   * The following orchestrator doesn't require a strict execution ordering
   * (because it's mainly used by the mass indexer, which already takes care of
   * ordering works properly and waiting for pending works when necessary).
   * Thus we use a parallel orchestrator to maximize throughput.
   * Also, since works are not applied in order, and since API users have no way
   * to determine whether a work finished or not, explicit refreshes are useless,
   * so we disable refreshes both in the bulk API call and in the execution contexts.
   */
  this.streamOrchestrator = createBatchingSharedOrchestrator(
      "Elasticsearch stream work orchestrator",
      STREAM_MAX_CHANGESETS_PER_BATCH,
      false, // Do not care about ordering when queuing changesets
      createParallelOrchestrator( this::createIndexMonitorBufferingWorkExecutionContext, STREAM_MIN_BULK_SIZE, false ) );
}
org.hibernate.search.spiBuildContextgetErrorHandler

Javadoc

Back-ends processing work asynchronously should catch all eventual errors in the ErrorHandlerto avoid losing information about the failing index updates.

Popular methods of BuildContext

  • getServiceManager
    Access the ServiceManager. Clients should keep a reference to the ServiceManager to allow for cleanu
  • getUninitializedSearchIntegrator
    Returns the ExtendedSearchIntegrator instance. Do not use until after the initialize and/or start me
  • getIndexingMode

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
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