Class CacheInvalidations
java.lang.Object
com.atlassian.crowd.dao.membership.cache.CacheInvalidations
Collection of membership cache invalidations.
Invalidations within a single transaction are aggregated and performed after transaction is committed.
-
Constructor Summary
ConstructorsConstructorDescriptionCacheInvalidations
(Set<QueryType> cacheableTypes, int queryTypeInvalidationThreshold) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInvalidation
(long directoryId) void
addInvalidation
(long directoryId, QueryType queryType) void
addInvalidation
(long directoryId, QueryType queryType, String key) Set<com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey>
boolean
isInvalidated
(com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey cacheKey, String key)
-
Constructor Details
-
CacheInvalidations
- Parameters:
cacheableTypes
- Cacheable query typesqueryTypeInvalidationThreshold
- when number of invalidated keys goes above this threshold then all entries for the given query type will be invalidated; this allows to reduce number of invalidation messages sent to the cluster
-
-
Method Details
-
isInvalidated
public boolean isInvalidated(com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey cacheKey, String key) -
addInvalidation
public void addInvalidation(long directoryId) -
addInvalidation
-
addInvalidation
-
getQueryTypesInvalidations
-
getKeyInvalidations
-