Class CacheInvalidations

java.lang.Object
com.atlassian.crowd.dao.membership.cache.CacheInvalidations

public class CacheInvalidations extends Object
Collection of membership cache invalidations. Invalidations within a single transaction are aggregated and performed after transaction is committed.
  • Constructor Details

    • CacheInvalidations

      public CacheInvalidations(Set<QueryType> cacheableTypes, int queryTypeInvalidationThreshold)
      Parameters:
      cacheableTypes - Cacheable query types
      queryTypeInvalidationThreshold - 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

      public void addInvalidation(long directoryId, QueryType queryType)
    • addInvalidation

      public void addInvalidation(long directoryId, QueryType queryType, String key)
    • getQueryTypesInvalidations

      public Set<com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey> getQueryTypesInvalidations()
    • getKeyInvalidations

      public Map<com.atlassian.crowd.dao.membership.cache.QueryTypeCacheKey,Set<String>> getKeyInvalidations()