public class PersistentCache extends Object implements Broadcaster.Listener
| Constructor and Description |
|---|
PersistentCache(String url) |
public PersistentCache(String url)
public void close()
public <K extends org.apache.jackrabbit.oak.cache.CacheValue,V extends org.apache.jackrabbit.oak.cache.CacheValue> Cache<K,V> wrap(DocumentNodeStore docNodeStore, DocumentStore docStore, Cache<K,V> base, CacheType type)
public <K extends org.apache.jackrabbit.oak.cache.CacheValue,V extends org.apache.jackrabbit.oak.cache.CacheValue> Cache<K,V> wrap(DocumentNodeStore docNodeStore, DocumentStore docStore, Cache<K,V> base, CacheType type, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
public <K,V> CacheMap<K,V> openMap(int generation, String name, org.h2.mvstore.MVMap.Builder<K,V> builder)
public void switchGenerationIfNeeded()
public int getMaxSize()
public int getOpenCount()
public int getExceptionCount()
public void receive(ByteBuffer buff)
Broadcaster.Listenerreceive in interface Broadcaster.Listenerbuff - the bufferpublic static PersistentCacheStats getPersistentCacheStats(Cache<?,?> cache)
public DynamicBroadcastConfig getBroadcastConfig()
public void setBroadcastConfig(DynamicBroadcastConfig broadcastConfig)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.