Class CacheMap<K,V>
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.persistentCache.CacheMap<K,V>
-
- Type Parameters:
K
- the key typeV
- the value type
public class CacheMap<K,V> extends Object
A cache map. This map supports re-opening the store if this is needed.Note that a failure to open the underlying store will be handled gracefully, in that the
CacheMap
can be constructed, but will not actually cache anything. The same is true for the case where the underlying store starts to fail and can not be re-opened.
-
-
Constructor Summary
Constructors Constructor Description CacheMap(MapFactory factory, String name, org.h2.mvstore.MVMap.Builder<K,V> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
V
get(Object key)
V
put(K key, V value)
V
remove(Object key)
-
-
-
Constructor Detail
-
CacheMap
public CacheMap(MapFactory factory, String name, org.h2.mvstore.MVMap.Builder<K,V> builder)
-
-