Interface CacheListener


  • public interface CacheListener
    Created with IntelliJ IDEA. User: stephan Date: 15.04.14 Time: 09:55 To change this template use File | Settings | File Templates.
    • Method Detail

      • wouldAddToCache

        <T> CacheEntry<T> wouldAddToCache​(Object k,
                                          CacheEntry<T> toCache,
                                          boolean updated)
        ability to alter cached entries or avoid caching overall
        Type Parameters:
        T - - the type
        Parameters:
        toCache - - datastructure containing cache key and result
        Returns:
        false, if not to cache
      • wouldClearCache

        <T> boolean wouldClearCache​(Class<T> affectedEntityType)
      • wouldRemoveEntryFromCache

        <T> boolean wouldRemoveEntryFromCache​(Object key,
                                              CacheEntry<T> toRemove,
                                              boolean expired)