Package com.evolveum.midpoint.repo.cache
Class GlobalQueryCache
- java.lang.Object
-
- com.evolveum.midpoint.repo.cache.AbstractGlobalCache
-
- com.evolveum.midpoint.repo.cache.GlobalQueryCache
-
@Component public class GlobalQueryCache extends AbstractGlobalCache
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.cache.AbstractGlobalCache
configurationManager, prismContext
-
-
Constructor Summary
Constructors Constructor Description GlobalQueryCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
destroy()
<T extends ObjectType>
SearchResultList<PrismObject<T>>get(QueryKey key)
protected CacheType
getCacheType()
void
initialize()
void
invokeAll(org.cache2k.processor.EntryProcessor<QueryKey,SearchResultList,Void> entryProcessor)
boolean
isAvailable()
<T extends ObjectType>
voidput(QueryKey key, SearchResultList<PrismObject<T>> cacheObject)
void
remove(QueryKey cacheKey)
int
size()
-
Methods inherited from class com.evolveum.midpoint.repo.cache.AbstractGlobalCache
getConfiguration, getConfiguration, getExpiryTime
-
-
-
-
Method Detail
-
initialize
public void initialize()
-
destroy
@PreDestroy public void destroy()
-
isAvailable
public boolean isAvailable()
-
get
public <T extends ObjectType> SearchResultList<PrismObject<T>> get(QueryKey key)
-
remove
public void remove(QueryKey cacheKey)
-
put
public <T extends ObjectType> void put(QueryKey key, SearchResultList<PrismObject<T>> cacheObject)
-
invokeAll
public void invokeAll(org.cache2k.processor.EntryProcessor<QueryKey,SearchResultList,Void> entryProcessor)
-
getCacheType
protected CacheType getCacheType()
- Specified by:
getCacheType
in classAbstractGlobalCache
-
size
public int size()
-
clear
public void clear()
- Specified by:
clear
in classAbstractGlobalCache
-
-