public interface AutomaticIndexingSynchronizationConfigurationContext
| Modifier and Type | Method and Description |
|---|---|
void |
documentCommitStrategy(DocumentCommitStrategy strategy) |
void |
documentRefreshStrategy(DocumentRefreshStrategy strategy) |
FailureHandler |
getFailureHandler() |
void |
indexingFutureHandler(Consumer<CompletableFuture<SearchIndexingPlanExecutionReport>> handler)
Set the handler for the (asynchronous) indexing future.
|
void documentCommitStrategy(DocumentCommitStrategy strategy)
strategy - A strategy describing how commits should be handled after document changes are applied.
Defaults to DocumentCommitStrategy.NONE.void documentRefreshStrategy(DocumentRefreshStrategy strategy)
strategy - A strategy describing how refresh should be handled after document changes are applied.
Defaults to DocumentRefreshStrategy.NONE.void indexingFutureHandler(Consumer<CompletableFuture<SearchIndexingPlanExecutionReport>> handler)
This typically involves waiting on the given future, to prevent the thread from resuming execution until indexing is complete.
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 getFailureHandler()
indexingFutureHandler(Consumer).Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.