Class PersistentCache
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.persistentCache.PersistentCache
- All Implemented Interfaces:
Broadcaster.Listener
A persistent cache for the document store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
int
int
static PersistentCacheStats
getPersistentCacheStats
(org.apache.jackrabbit.guava.common.cache.Cache<?, ?> cache) <K,
V> CacheMap<K, V> void
receive
(ByteBuffer buff) Receive a message.void
setBroadcastConfig
(DynamicBroadcastConfig broadcastConfig) void
<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 Details
-
PersistentCache
-
-
Method Details
-
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
-
switchGenerationIfNeeded
public void switchGenerationIfNeeded() -
getMaxSize
public int getMaxSize() -
getOpenCount
public int getOpenCount() -
getExceptionCount
public int getExceptionCount() -
receive
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
-
setBroadcastConfig
-