Package de.caluga.morphium.cache
Interface CacheListener
-
public interface CacheListenerCreated with IntelliJ IDEA. User: stephan Date: 15.04.14 Time: 09:55 To change this template use File | Settings | File Templates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> CacheEntry<T>wouldAddToCache(Object k, CacheEntry<T> toCache, boolean updated)ability to alter cached entries or avoid caching overall<T> booleanwouldClearCache(Class<T> affectedEntityType)<T> booleanwouldRemoveEntryFromCache(Object key, CacheEntry<T> toRemove, boolean expired)
-
-
-
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)
-
-