Class PersistentCache
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.persistentCache.PersistentCache
-
- All Implemented Interfaces:
Broadcaster.Listener
public class PersistentCache extends Object implements Broadcaster.Listener
A persistent cache for the document store.
-
-
Constructor Summary
Constructors Constructor Description PersistentCache(String url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DynamicBroadcastConfiggetBroadcastConfig()intgetExceptionCount()intgetMaxSize()intgetOpenCount()static PersistentCacheStatsgetPersistentCacheStats(org.apache.jackrabbit.guava.common.cache.Cache<?,?> cache)<K,V>
CacheMap<K,V>openMap(int generation, String name, org.h2.mvstore.MVMap.Builder<K,V> builder)voidreceive(ByteBuffer buff)Receive a message.voidsetBroadcastConfig(DynamicBroadcastConfig broadcastConfig)voidswitchGenerationIfNeeded()<K extends CacheValue,V extends CacheValue>
org.apache.jackrabbit.guava.common.cache.Cache<K,V>wrap(DocumentNodeStore docNodeStore, DocumentStore docStore, org.apache.jackrabbit.guava.common.cache.Cache<K,V> base, CacheType type)<K extends CacheValue,V extends CacheValue>
org.apache.jackrabbit.guava.common.cache.Cache<K,V>wrap(DocumentNodeStore docNodeStore, DocumentStore docStore, org.apache.jackrabbit.guava.common.cache.Cache<K,V> base, CacheType type, StatisticsProvider statisticsProvider)
-
-
-
Constructor Detail
-
PersistentCache
public PersistentCache(String url)
-
-
Method Detail
-
close
public void close()
-
wrap
public <K extends CacheValue,V extends CacheValue> org.apache.jackrabbit.guava.common.cache.Cache<K,V> wrap(DocumentNodeStore docNodeStore, DocumentStore docStore, org.apache.jackrabbit.guava.common.cache.Cache<K,V> base, CacheType type)
-
wrap
public <K extends CacheValue,V extends CacheValue> org.apache.jackrabbit.guava.common.cache.Cache<K,V> wrap(DocumentNodeStore docNodeStore, DocumentStore docStore, org.apache.jackrabbit.guava.common.cache.Cache<K,V> base, CacheType type, StatisticsProvider statisticsProvider)
-
openMap
public <K,V> CacheMap<K,V> openMap(int generation, String name, org.h2.mvstore.MVMap.Builder<K,V> builder)
-
switchGenerationIfNeeded
public void switchGenerationIfNeeded()
-
getMaxSize
public int getMaxSize()
-
getOpenCount
public int getOpenCount()
-
getExceptionCount
public int getExceptionCount()
-
receive
public void receive(ByteBuffer buff)
Description copied from interface:Broadcaster.ListenerReceive a message.- Specified by:
receivein interfaceBroadcaster.Listener- Parameters:
buff- the buffer
-
getPersistentCacheStats
public static PersistentCacheStats getPersistentCacheStats(org.apache.jackrabbit.guava.common.cache.Cache<?,?> cache)
-
getBroadcastConfig
public DynamicBroadcastConfig getBroadcastConfig()
-
setBroadcastConfig
public void setBroadcastConfig(DynamicBroadcastConfig broadcastConfig)
-
-