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 Details

    • PersistentCache

      public PersistentCache(String url)
  • 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

      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 interface Broadcaster.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)