Package de.caluga.morphium.cache
Schnittstelle MorphiumCache
- Alle bekannten Implementierungsklassen:
MorphiumCacheImpl,MorphiumCacheJCacheImpl
public interface MorphiumCache
User: Stephan Bösebeck
Date: 07.03.13
Time: 09:57
Cache interface . you can set your own cache implementation to morphium if it implements this interface
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid<T> voidaddToCache(String k, Class<? extends T> type, List<T> ret) voidclearCachefor(Class<?> cls) voidvoidclose()getCacheKey(Query q) getCacheKey(Class type, Map<String, Object> qo, Map<String, Integer> sort, Map<String, Object> project, String collection, int skip, int limit) javax.cache.CacheManager<T> List<T>getFromCache(Class<? extends T> type, String k) <T> TgetFromIDCache(Class<? extends T> type, Object id) getSizes()booleanbooleanvoidvoidremoveEntryFromCache(Class cls, Object id) voidremoveEntryFromIdCache(Class cls, Object id) voidvoidvoidsetCacheManager(javax.cache.CacheManager cacheManager) voidsetDefaultCacheTime(Class type) reset cache time settings to default, if settings were cahnged using setValidCacheTimevoidsetGlobalCacheTimeout(int tm) voidsetHouskeepingIntervalPause(int p) voidsetValidCacheTime(Class type, int time) override the settings given in @Cache annotation with this value this is useful to change cache behaviour during runtime
-
Methodendetails
-
addToCache
-
getCacheKey
-
getFromCache
-
clearCachefor
-
resetCache
void resetCache() -
close
void close() -
removeEntryFromIdCache
-
removeEntryFromCache
-
getFromIDCache
-
getCachedTypes
-
getCacheKey
-
isCached
-
clearCacheIfNecessary
-
addCacheListener
-
removeCacheListener
-
isListenerRegistered
-
setGlobalCacheTimeout
void setGlobalCacheTimeout(int tm) -
setAnnotationAndReflectionHelper
-
setHouskeepingIntervalPause
void setHouskeepingIntervalPause(int p) -
setValidCacheTime
override the settings given in @Cache annotation with this value this is useful to change cache behaviour during runtime- Parameter:
type-time-
-
setDefaultCacheTime
reset cache time settings to default, if settings were cahnged using setValidCacheTime- Parameter:
type-
-
getSizes
-
setCacheManager
void setCacheManager(javax.cache.CacheManager cacheManager) -
getCacheManager
javax.cache.CacheManager getCacheManager()
-