public class CacheInvalidations extends Object
Constructor and Description |
---|
CacheInvalidations(Set<QueryType> cacheableTypes,
int queryTypeInvalidationThreshold) |
Modifier and Type | Method and Description |
---|---|
void |
addInvalidation(long directoryId) |
void |
addInvalidation(long directoryId,
QueryType queryType) |
void |
addInvalidation(long directoryId,
QueryType queryType,
String key) |
Map<com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey,Set<String>> |
getKeyInvalidations() |
Set<com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey> |
getQueryTypesInvalidations() |
boolean |
isInvalidated(com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey cacheKey,
String key) |
public CacheInvalidations(Set<QueryType> cacheableTypes, int queryTypeInvalidationThreshold)
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 clusterpublic boolean isInvalidated(com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey cacheKey, String key)
public void addInvalidation(long directoryId)
public void addInvalidation(long directoryId, QueryType queryType)
public Set<com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey> getQueryTypesInvalidations()
Copyright © 2021 Atlassian. All rights reserved.