Interface IndexingPlanSynchronizationStrategy
-
- All Known Implementing Classes:
AsyncIndexingPlanSynchronizationStrategy,HibernateOrmIndexingPlanSynchronizationStrategyAdapter,ReadSyncIndexingPlanSynchronizationStrategy,SyncIndexingPlanSynchronizationStrategy,WriteSyncIndexingPlanSynchronizationStrategy
@Incubating public interface IndexingPlanSynchronizationStrategy
Determines how the thread will block upon committing a transaction where indexed entities were modified.SearchSession#indexingPlanSynchronizationStrategy(IndexingPlanSynchronizationStrategy)
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(IndexingPlanSynchronizationStrategyConfigurationContext context)static IndexingPlanSynchronizationStrategyasync()static IndexingPlanSynchronizationStrategyreadSync()static IndexingPlanSynchronizationStrategysync()static IndexingPlanSynchronizationStrategywriteSync()
-
-
-
Method Detail
-
apply
void apply(IndexingPlanSynchronizationStrategyConfigurationContext context)
-
async
static IndexingPlanSynchronizationStrategy async()
- Returns:
- A strategy that only waits for index changes to be queued in the backend. See the reference documentation for details.
-
writeSync
static IndexingPlanSynchronizationStrategy writeSync()
- Returns:
- A strategy that waits for index changes to be queued and applied, forces a commit, and waits for the commit to complete. See the reference documentation for details.
-
readSync
static IndexingPlanSynchronizationStrategy readSync()
- Returns:
- A strategy that waits for index changes to be queued and applied, forces a refresh, and waits for the refresh to complete. See the reference documentation for details.
-
sync
static IndexingPlanSynchronizationStrategy sync()
- Returns:
- A strategy that waits for index changes to be queued and applied, forces a commit and a refresh, and waits for the commit and refresh to complete. See the reference documentation for details.
-
-