org.qi4j.index.sql.support.common
Interface ReindexingStrategy
- All Known Implementing Classes:
- ReindexingStrategy.AlwaysNeed, ReindexingStrategy.NeedOnChange, ReindexingStrategy.NeverNeed
public interface ReindexingStrategy
Service to decide when complete re-indexing is needed, along with default implementations. TODO
maybe add void beganReindexing()
and void finishedReindexing()
methods? For
example, for UI interaction.
You can decide your application's re-indexing policy for example like this:
mainModule.addServices(ReindexingStrategy.class).withMixins(ReindexingStrategy.AlwaysNeed.class);
. This way your application will always re-index all entity store data at startup.
Method Summary |
boolean |
reindexingNeeded(java.lang.String dbAppVersion,
java.lang.String currentAppVersion)
|
reindexingNeeded
boolean reindexingNeeded(java.lang.String dbAppVersion,
java.lang.String currentAppVersion)