Package fr.gouv.vitam.common.cache

# 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 Summary

  Constructors
  Constructor
  Description
  `AbstractVitamCache()`
  `AbstractVitamCache(boolean enableStats, int concurrencyLevel)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `com.google.common.cache.LoadingCache<T,V>`
  `getCache()`
  `protected abstract V`
  `loadByKey(T key)`
  `protected abstract Map<T,V>`
  `loadByKeys(Iterable<? extends T> keys)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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>`