Package com.flowable.indexing
Interface ReindexManager
- All Known Implementing Classes:
ReindexManagerImpl
public interface ReindexManager
Manager that can be used to do a full reindex of an index. See methods for more information.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
reindex
(String alias, ReindexEntityPageHandler reindexEntityPageHandler) Uses aReindexEntityPageHandler
to reindex data, page by page.void
reindex
(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.void
reindex
(String alias, 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 genericReindexRunnable
that can contain any logic. -
reindex
Uses aReindexEntityPageHandler
to reindex data, page by page. Internally, a newReindexRunnable
will be created and thereindex(String, ReindexRunnable)
will be called. -
reindex
UsesReindexEntityPageHandler
(s) to reindex data, page by page. Internally, a newReindexRunnable
will be created and thereindex(String, ReindexRunnable)
will be called.
-