Interface AutomaticIndexingSynchronizationConfigurationContext


@Deprecated public interface AutomaticIndexingSynchronizationConfigurationContext
Deprecated.
Use IndexingPlanSynchronizationStrategyConfigurationContext
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    documentCommitStrategy(org.hibernate.search.engine.backend.work.execution.DocumentCommitStrategy strategy)
    Deprecated.
     
    void
    documentRefreshStrategy(org.hibernate.search.engine.backend.work.execution.DocumentRefreshStrategy strategy)
    Deprecated.
     
    org.hibernate.search.engine.reporting.FailureHandler
    Deprecated.
     
    void
    Deprecated.
    Set the handler for the (asynchronous) indexing future.
    void
    operationSubmitter(org.hibernate.search.engine.backend.work.execution.OperationSubmitter operationSubmitter)
    Deprecated.
    Set operation submitter to be applied while executing underlying plans.
  • Method Details

    • documentCommitStrategy

      void documentCommitStrategy(org.hibernate.search.engine.backend.work.execution.DocumentCommitStrategy strategy)
      Deprecated.
      Parameters:
      strategy - A strategy describing how commits should be handled after document changes are applied. Defaults to DocumentCommitStrategy.NONE.
    • documentRefreshStrategy

      void documentRefreshStrategy(org.hibernate.search.engine.backend.work.execution.DocumentRefreshStrategy strategy)
      Deprecated.
      Parameters:
      strategy - A strategy describing how refresh should be handled after document changes are applied. Defaults to DocumentRefreshStrategy.NONE.
    • indexingFutureHandler

      void indexingFutureHandler(Consumer<CompletableFuture<SearchIndexingPlanExecutionReport>> handler)
      Deprecated.
      Set the handler for the (asynchronous) indexing future.

      This typically involves waiting on the given future, to prevent the thread from resuming execution until indexing is complete.

      Parameters:
      handler - A handler that will be passed a future representing the progress of indexing. Defaults to a no-op handler. The future will be completed with an execution report once all document changes are applied. If any document change or the commit/refresh required bydocumentCommitStrategy(DocumentCommitStrategy) and documentRefreshStrategy(DocumentRefreshStrategy) failed, the report will contain a throwable and (if applicable) a list of failing entities.
    • failureHandler

      org.hibernate.search.engine.reporting.FailureHandler failureHandler()
      Deprecated.
      Returns:
      The failure handler. Use this to report failures that cannot be propagated by the indexingFutureHandler(Consumer).
    • operationSubmitter

      @Incubating void operationSubmitter(org.hibernate.search.engine.backend.work.execution.OperationSubmitter operationSubmitter)
      Deprecated.
      Set operation submitter to be applied while executing underlying plans. Using OperationSubmitter.blocking() by default.
      Parameters:
      operationSubmitter - How to handle request to submit operation when the queue is full
      See Also:
      • OperationSubmitter