Class AbstractVitamCache<T,​V>

  • All Implemented Interfaces:
    VitamCache<T,​V>
    Direct Known Subclasses:
    GraphComputeCache

    public abstract class AbstractVitamCache<T,​V>
    extends java.lang.Object
    implements VitamCache<T,​V>
    Abstract vitam cache
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.cache.LoadingCache<T,​V> getCache()  
      protected abstract V loadByKey​(T key)  
      protected abstract java.util.Map<T,​V> loadByKeys​(java.lang.Iterable<? extends T> keys)  
      • Methods inherited from class java.lang.Object

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

      • AbstractVitamCache

        public AbstractVitamCache()
      • AbstractVitamCache

        public AbstractVitamCache​(boolean enableStats,
                                  int concurrencyLevel)
    • Method Detail

      • loadByKeys

        protected abstract java.util.Map<T,​V> loadByKeys​(java.lang.Iterable<? extends T> keys)
      • loadByKey

        protected abstract V loadByKey​(T key)
      • getCache

        public com.google.common.cache.LoadingCache<T,​V> getCache()
        Specified by:
        getCache in interface VitamCache<T,​V>