Class GlobalQueryCache
- java.lang.Object
-
- com.evolveum.midpoint.repo.cache.global.AbstractGlobalCache
-
- com.evolveum.midpoint.repo.cache.global.GlobalQueryCache
-
@Component public class GlobalQueryCache extends AbstractGlobalCache
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.cache.global.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
deleteMatching(Predicate<Map.Entry<QueryKey,GlobalCacheQueryValue>> predicate)
void
destroy()
void
dumpContent()
<T extends ObjectType>
SearchResultList<PrismObject<T>>get(QueryKey key)
protected CacheType
getCacheType()
Collection<SingleCacheStateInformationType>
getStateInformation()
void
initialize()
boolean
isAvailable()
<T extends ObjectType>
voidput(QueryKey<T> key, @NotNull SearchResultList<PrismObject<T>> cacheObject)
void
remove(QueryKey cacheKey)
int
size()
-
Methods inherited from class com.evolveum.midpoint.repo.cache.global.AbstractGlobalCache
getConfiguration, getConfiguration, hasClusterwideInvalidationFor, shouldDoSafeRemoteInvalidationFor
-
-
-
-
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<T> key, @NotNull @NotNull SearchResultList<PrismObject<T>> cacheObject)
-
deleteMatching
public void deleteMatching(Predicate<Map.Entry<QueryKey,GlobalCacheQueryValue>> predicate)
-
getCacheType
protected CacheType getCacheType()
- Specified by:
getCacheType
in classAbstractGlobalCache
-
size
public int size()
-
clear
public void clear()
- Specified by:
clear
in classAbstractGlobalCache
-
getStateInformation
public Collection<SingleCacheStateInformationType> getStateInformation()
-
dumpContent
public void dumpContent()
-
-