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 void
close()
DynamicBroadcastConfig
getBroadcastConfig()
int
getExceptionCount()
int
getMaxSize()
int
getOpenCount()
static PersistentCacheStats
getPersistentCacheStats(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)
void
receive(ByteBuffer buff)
Receive a message.void
setBroadcastConfig(DynamicBroadcastConfig broadcastConfig)
void
switchGenerationIfNeeded()
<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.Listener
Receive a message.- Specified by:
receive
in 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)
-
-