Interface Indexer


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

    • 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.
    • runLocal

      CompletionStage<Void> runLocal()
      same as run() but will only re-index data from the local member.
    • run

      CompletionStage<Void> run(Object... keys)
      Re-indexes values associated with the provided keys only.
    • remove

      Removes all indexes from the cache.
    • 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.