Interface Indexer


  • public interface Indexer
    Interacts directly with cache indexes.
    Since:
    11.0
    • Method Detail

      • run

        CompletionStage<Void> run()
        Deletes all indexes for the cache and rebuilds them. The indexing operation can take a long time to complete, depending on the size of the cache. You should not query caches until the indexing operation is complete because it affects query performance and results.
      • remove

        CompletionStage<Void> remove​(Class<?>... entities)
        Removes all entities of a particular class from the index of the cache.
      • isRunning

        boolean isRunning()
        Returns:
        true if the indexer process was started on this node and has not finished yet.