Interface AutomaticIndexingSynchronizationConfigurationContext
-
public interface AutomaticIndexingSynchronizationConfigurationContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddocumentCommitStrategy(DocumentCommitStrategy strategy)voiddocumentRefreshStrategy(DocumentRefreshStrategy strategy)FailureHandlerfailureHandler()voidindexingFutureHandler(Consumer<CompletableFuture<SearchIndexingPlanExecutionReport>> handler)Set the handler for the (asynchronous) indexing future.
-
-
-
Method Detail
-
documentCommitStrategy
void documentCommitStrategy(DocumentCommitStrategy strategy)
- Parameters:
strategy- A strategy describing how commits should be handled after document changes are applied. Defaults toDocumentCommitStrategy.NONE.
-
documentRefreshStrategy
void documentRefreshStrategy(DocumentRefreshStrategy strategy)
- Parameters:
strategy- A strategy describing how refresh should be handled after document changes are applied. Defaults toDocumentRefreshStrategy.NONE.
-
indexingFutureHandler
void indexingFutureHandler(Consumer<CompletableFuture<SearchIndexingPlanExecutionReport>> handler)
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)anddocumentRefreshStrategy(DocumentRefreshStrategy)failed, the report willcontain a throwableand (if applicable)a list of failing entities.
-
failureHandler
FailureHandler failureHandler()
- Returns:
- The failure handler.
Use this to report failures that cannot be propagated by the
indexingFutureHandler(Consumer).
-
-