public interface AutomaticIndexingSynchronizationStrategy
| Modifier and Type | Method and Description |
|---|---|
static AutomaticIndexingSynchronizationStrategy |
committed() |
DocumentCommitStrategy |
getDocumentCommitStrategy() |
DocumentRefreshStrategy |
getDocumentRefreshStrategy() |
void |
handleFuture(CompletableFuture<?> future)
Handle the result of the (asynchronous) indexing.
|
static AutomaticIndexingSynchronizationStrategy |
queued() |
static AutomaticIndexingSynchronizationStrategy |
searchable() |
DocumentCommitStrategy getDocumentCommitStrategy()
DocumentRefreshStrategy getDocumentRefreshStrategy()
void handleFuture(CompletableFuture<?> future)
This typically involves waiting on the given future, to prevent the thread from resuming execution until indexing is complete.
future - A future that will be completed once all document changes are applied
and the commit/refresh requirements defined by getDocumentCommitStrategy()
and getDocumentRefreshStrategy() are satisfied.static AutomaticIndexingSynchronizationStrategy queued()
static AutomaticIndexingSynchronizationStrategy committed()
static AutomaticIndexingSynchronizationStrategy searchable()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.