Class LoomQueryCache<K,V>

java.lang.Object
com.loomcache.client.query.LoomQueryCache<K,V>
All Implemented Interfaces:
AutoCloseable

public final class LoomQueryCache<K,V> extends Object implements AutoCloseable
A continuous-query cache (CQC) that maintains a local materialized view of the cluster entries matching a given predicate.

On creation the cache seeds itself from the cluster via a scan, then receives incremental updates as matching entries are added, changed, or removed. Register CQCListener callbacks to be notified of changes to the view. The view is bounded only by the predicate; close the cache when done to stop receiving updates.