Class AbstractVitamCache<T,V>

java.lang.Object
fr.gouv.vitam.common.cache.AbstractVitamCache<T,V>
All Implemented Interfaces:
VitamCache<T,V>
Direct Known Subclasses:
GraphComputeCache

public abstract class AbstractVitamCache<T,V> extends Object implements VitamCache<T,V>
Abstract vitam cache
  • Constructor Details

    • AbstractVitamCache

      public AbstractVitamCache()
    • AbstractVitamCache

      public AbstractVitamCache(boolean enableStats, int concurrencyLevel)
  • Method Details

    • loadByKeys

      protected abstract Map<T,V> loadByKeys(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>