Package com.flowable.indexing
Interface ReindexManager
- All Known Implementing Classes:
ReindexManagerImpl
public interface ReindexManager
-
Method Summary
Modifier and Type Method Description default voidreindex(java.lang.String alias, ReindexEntityPageHandler reindexEntityPageHandler)Uses aReindexEntityPageHandlerto reindex data, page by page.voidreindex(java.lang.String alias, ReindexRunnable reindexRunnable)Executes the providedReindexRunnable(containing the actual reindex logic), while taking care before and after the execution to properly housekeep the indices: 1.voidreindex(java.lang.String alias, java.util.Collection<ReindexEntityPageHandler> reindexEntityPageHandlers)UsesReindexEntityPageHandler(s) to reindex data, page by page.
-
Method Details
-
reindex
Executes the providedReindexRunnable(containing the actual reindex logic), while taking care before and after the execution to properly housekeep the indices: 1. String originalIndexName = getTheRealIndexName 2. Delete the alias for the index 3. create a new index (with prefix) 4. Execute custom reindex logic 5. Delete the original index Uses a genericReindexRunnablethat can contain any logic. -
reindex
Uses aReindexEntityPageHandlerto reindex data, page by page. Internally, a newReindexRunnablewill be created and thereindex(String, ReindexRunnable)will be called. -
reindex
void reindex(java.lang.String alias, java.util.Collection<ReindexEntityPageHandler> reindexEntityPageHandlers)UsesReindexEntityPageHandler(s) to reindex data, page by page. Internally, a newReindexRunnablewill be created and thereindex(String, ReindexRunnable)will be called.
-