Package com.google.gerrit.server.cache
Class PersistentCacheBaseFactory
- java.lang.Object
- 
- com.google.gerrit.server.cache.PersistentCacheBaseFactory
 
- 
- All Implemented Interfaces:
- PersistentCacheFactory
 
 public abstract class PersistentCacheBaseFactory extends Object implements PersistentCacheFactory Base class for persistent cache factory. If the cache.directory property is unset, or disk limit is zero or negative, it will fall back to in-memory only caches.
- 
- 
Field SummaryFields Modifier and Type Field Description protected PathcacheDirprotected org.eclipse.jgit.lib.Configconfigprotected booleandiskEnabledprotected MemoryCacheFactorymemCacheFactory
 - 
Constructor SummaryConstructors Constructor Description PersistentCacheBaseFactory(MemoryCacheFactory memCacheFactory, org.eclipse.jgit.lib.Config config, SitePaths site)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <K,V>
 com.google.common.cache.LoadingCache<K,V>build(PersistentCacheDef<K,V> in, com.google.common.cache.CacheLoader<K,V> loader, CacheBackend backend)<K,V>
 com.google.common.cache.Cache<K,V>build(PersistentCacheDef<K,V> in, CacheBackend backend)protected abstract <K,V>
 com.google.common.cache.Cache<K,V>buildImpl(PersistentCacheDef<K,V> in, long diskLimit, CacheBackend backend)protected abstract <K,V>
 com.google.common.cache.LoadingCache<K,V>buildImpl(PersistentCacheDef<K,V> in, com.google.common.cache.CacheLoader<K,V> loader, long diskLimit, CacheBackend backend)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.google.gerrit.server.cache.PersistentCacheFactoryonStop
 
- 
 
- 
- 
- 
Field Detail- 
memCacheFactoryprotected final MemoryCacheFactory memCacheFactory 
 - 
cacheDirprotected final Path cacheDir 
 - 
diskEnabledprotected boolean diskEnabled 
 - 
configprotected final org.eclipse.jgit.lib.Config config 
 
- 
 - 
Constructor Detail- 
PersistentCacheBaseFactorypublic PersistentCacheBaseFactory(MemoryCacheFactory memCacheFactory, org.eclipse.jgit.lib.Config config, SitePaths site) 
 
- 
 - 
Method Detail- 
buildImplprotected abstract <K,V> com.google.common.cache.Cache<K,V> buildImpl(PersistentCacheDef<K,V> in, long diskLimit, CacheBackend backend) 
 - 
buildImplprotected abstract <K,V> com.google.common.cache.LoadingCache<K,V> buildImpl(PersistentCacheDef<K,V> in, com.google.common.cache.CacheLoader<K,V> loader, long diskLimit, CacheBackend backend) 
 - 
buildpublic <K,V> com.google.common.cache.Cache<K,V> build(PersistentCacheDef<K,V> in, CacheBackend backend) - Specified by:
- buildin interface- PersistentCacheFactory
 
 - 
buildpublic <K,V> com.google.common.cache.LoadingCache<K,V> build(PersistentCacheDef<K,V> in, com.google.common.cache.CacheLoader<K,V> loader, CacheBackend backend) - Specified by:
- buildin interface- PersistentCacheFactory
 
 
- 
 
-