Class LocalQueryCache
- java.lang.Object
-
- com.evolveum.midpoint.util.caching.AbstractThreadLocalCache
-
- com.evolveum.midpoint.repo.cache.local.LocalQueryCache
-
public class LocalQueryCache extends AbstractThreadLocalCache
Thread-local cache for storing query results.
-
-
Constructor Summary
Constructors Constructor Description LocalQueryCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
void
dumpContent(String threadName)
<T extends ObjectType>
SearchResultList<PrismObject<T>>get(QueryKey key)
Iterator<Map.Entry<QueryKey,SearchResultList>>
getEntryIterator()
protected int
getSize()
void
put(QueryKey key, @NotNull SearchResultList list)
void
remove(QueryKey key)
-
Methods inherited from class com.evolveum.midpoint.util.caching.AbstractThreadLocalCache
debugDump, destroy, dumpContent, enter, exists, exit, getConfiguration, getConfiguration, getEntryCount, getTotalSize, isAvailable, registerHit, registerMiss, registerPass, setConfiguration, supportsObjectType, toString
-
-
-
-
Method Detail
-
get
public <T extends ObjectType> SearchResultList<PrismObject<T>> get(QueryKey key)
-
put
public void put(QueryKey key, @NotNull @NotNull SearchResultList list)
-
remove
public void remove(QueryKey key)
-
description
public String description()
- Specified by:
description
in classAbstractThreadLocalCache
-
getSize
protected int getSize()
- Specified by:
getSize
in classAbstractThreadLocalCache
-
dumpContent
public void dumpContent(String threadName)
- Specified by:
dumpContent
in classAbstractThreadLocalCache
-
getEntryIterator
public Iterator<Map.Entry<QueryKey,SearchResultList>> getEntryIterator()
-
-