Package net.n2oapp.cache.template
Class ThreeLevelCacheTemplate<F,S,T>
- java.lang.Object
-
- net.n2oapp.cache.template.ThreeLevelCacheTemplate<F,S,T>
-
public class ThreeLevelCacheTemplate<F,S,T> extends Object
Шаблон сервиса трехуровнего кэширования
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description ThreeLevelCacheTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fexecute(String firstLevelRegion, String secondLevelRegion, String thirdLevelRegion, Object firstKey, Object secondKey, Object thirdKey, ThreeLevelCacheCallback<F,S,T> callback)protected org.springframework.cache.CacheManagergetCacheManager()protected FhandleFirstCache(Object firstKey, S secondLevelCacheValue, org.springframework.cache.Cache firstLevelCache, ThreeLevelCacheCallback<F,S,T> callback)protected FhandleSecondCache(Object firstKey, Object secondKey, ThreeLevelCacheCallback<F,S,T> callback, org.springframework.cache.Cache firstLevelCache, org.springframework.cache.Cache secondLevelCache, T thirdLevelCacheValue)protected FhandleThirdCache(Object firstKey, Object secondKey, Object thirdKey, ThreeLevelCacheCallback<F,S,T> callback, org.springframework.cache.Cache firstLevelCache, org.springframework.cache.Cache secondLevelCache, org.springframework.cache.Cache thirdLevelCache)voidsetCacheManager(org.springframework.cache.CacheManager cacheManager)
-
-
-
Method Detail
-
setCacheManager
public void setCacheManager(org.springframework.cache.CacheManager cacheManager)
-
getCacheManager
protected org.springframework.cache.CacheManager getCacheManager()
-
execute
public F execute(String firstLevelRegion, String secondLevelRegion, String thirdLevelRegion, Object firstKey, Object secondKey, Object thirdKey, ThreeLevelCacheCallback<F,S,T> callback)
-
handleThirdCache
protected F handleThirdCache(Object firstKey, Object secondKey, Object thirdKey, ThreeLevelCacheCallback<F,S,T> callback, org.springframework.cache.Cache firstLevelCache, org.springframework.cache.Cache secondLevelCache, org.springframework.cache.Cache thirdLevelCache)
-
handleSecondCache
protected F handleSecondCache(Object firstKey, Object secondKey, ThreeLevelCacheCallback<F,S,T> callback, org.springframework.cache.Cache firstLevelCache, org.springframework.cache.Cache secondLevelCache, T thirdLevelCacheValue)
-
-