Class QueryKnownClasses

  • @ThreadSafe
    public final class QueryKnownClasses
    extends Object
    To be removed in Infinispan 10.0
    Stores all entity classes known to query module in a replicated cache. The entry value is a boolean which indicates if the type is indexable. The key is a KeyValuePair composed of the cache name and the class. This cache is 'append only'.

    Write operations are expected to happen only exceptionally, therefore this code is heavily optimized for reads (at cost of writes). Also we're assuming all entries are small: there is no size limit nor cleanup strategy.

    This is not caching the fact that some key is not defined: that would be tricky to get right and is not needed for our use case.

    Sanne Grinovero (C) 2013 Red Hat Inc.,