Class ThreeLevelCacheTemplate<F,​S,​T>


  • public class ThreeLevelCacheTemplate<F,​S,​T>
    extends java.lang.Object
    Шаблон сервиса трехуровнего кэширования
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger log  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      F execute​(java.lang.String firstLevelRegion, java.lang.String secondLevelRegion, java.lang.String thirdLevelRegion, java.lang.Object firstKey, java.lang.Object secondKey, java.lang.Object thirdKey, ThreeLevelCacheCallback<F,​S,​T> callback)  
      protected org.springframework.cache.CacheManager getCacheManager()  
      protected F handleFirstCache​(java.lang.Object firstKey, S secondLevelCacheValue, org.springframework.cache.Cache firstLevelCache, ThreeLevelCacheCallback<F,​S,​T> callback)  
      protected F handleSecondCache​(java.lang.Object firstKey, java.lang.Object secondKey, ThreeLevelCacheCallback<F,​S,​T> callback, org.springframework.cache.Cache firstLevelCache, org.springframework.cache.Cache secondLevelCache, T thirdLevelCacheValue)  
      protected F handleThirdCache​(java.lang.Object firstKey, java.lang.Object secondKey, java.lang.Object thirdKey, ThreeLevelCacheCallback<F,​S,​T> callback, org.springframework.cache.Cache firstLevelCache, org.springframework.cache.Cache secondLevelCache, org.springframework.cache.Cache thirdLevelCache)  
      void setCacheManager​(org.springframework.cache.CacheManager cacheManager)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected static final org.slf4j.Logger log
    • Constructor Detail

      • ThreeLevelCacheTemplate

        public ThreeLevelCacheTemplate()
    • Method Detail

      • setCacheManager

        public void setCacheManager​(org.springframework.cache.CacheManager cacheManager)
      • getCacheManager

        protected org.springframework.cache.CacheManager getCacheManager()
      • execute

        public F execute​(java.lang.String firstLevelRegion,
                         java.lang.String secondLevelRegion,
                         java.lang.String thirdLevelRegion,
                         java.lang.Object firstKey,
                         java.lang.Object secondKey,
                         java.lang.Object thirdKey,
                         ThreeLevelCacheCallback<F,​S,​T> callback)
      • handleThirdCache

        protected F handleThirdCache​(java.lang.Object firstKey,
                                     java.lang.Object secondKey,
                                     java.lang.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​(java.lang.Object firstKey,
                                      java.lang.Object secondKey,
                                      ThreeLevelCacheCallback<F,​S,​T> callback,
                                      org.springframework.cache.Cache firstLevelCache,
                                      org.springframework.cache.Cache secondLevelCache,
                                      T thirdLevelCacheValue)
      • handleFirstCache

        protected F handleFirstCache​(java.lang.Object firstKey,
                                     S secondLevelCacheValue,
                                     org.springframework.cache.Cache firstLevelCache,
                                     ThreeLevelCacheCallback<F,​S,​T> callback)