Package io.jmix.search.index.impl
Class IndexStateRegistry
java.lang.Object
io.jmix.search.index.impl.IndexStateRegistry
Holds markers of search indexes availability.
Only entities with available indexes can be used in index-modification operations
(to prevent storing data into incorrect indexes or automatic creation of them by ES).
Doesn't affect searching.
Every action that makes or detects index is valid (creation or successful synchronization\validation) marks it as available.
Every action that makes or detects index is invalid (drop or unsuccessful synchronization\validation) marks it as unavailable.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isIndexAvailable
(String entityName) void
markIndexAsAvailable
(String entityName) void
markIndexAsUnavailable
(String entityName) protected void
setRegistryValue
(String entityName, boolean value)
-
Field Details
-
registry
-
indexConfigurationManager
-
-
Constructor Details
-
IndexStateRegistry
-
-
Method Details
-
getIndexAvailabilityStates
-
isIndexAvailable
-
markIndexAsAvailable
-
setRegistryValue
-