Package com.google.gerrit.server.cache
Class PersistentCacheBaseFactory
java.lang.Object
com.google.gerrit.server.cache.PersistentCacheBaseFactory
- All Implemented Interfaces:
- 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 SummaryFieldsModifier and TypeFieldDescriptionprotected final Pathprotected final org.eclipse.jgit.lib.Configprotected booleanprotected final MemoryCacheFactory
- 
Constructor SummaryConstructorsConstructorDescriptionPersistentCacheBaseFactory(MemoryCacheFactory memCacheFactory, org.eclipse.jgit.lib.Config config, SitePaths site) 
- 
Method SummaryModifier and TypeMethodDescription<K,V> com.google.common.cache.Cache<K, V> build(PersistentCacheDef<K, V> in) <K,V> com.google.common.cache.LoadingCache<K, V> build(PersistentCacheDef<K, V> in, com.google.common.cache.CacheLoader<K, V> loader) protected abstract <K,V> com.google.common.cache.Cache<K, V> buildImpl(PersistentCacheDef<K, V> in, long diskLimit) 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) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gerrit.server.cache.PersistentCacheFactoryonStop
- 
Field Details- 
memCacheFactory
- 
cacheDir
- 
diskEnabledprotected boolean diskEnabled
- 
configprotected final org.eclipse.jgit.lib.Config config
 
- 
- 
Constructor Details- 
PersistentCacheBaseFactorypublic PersistentCacheBaseFactory(MemoryCacheFactory memCacheFactory, org.eclipse.jgit.lib.Config config, SitePaths site) 
 
- 
- 
Method Details- 
buildImplprotected abstract <K,V> com.google.common.cache.Cache<K,V> buildImpl(PersistentCacheDef<K, V> in, long diskLimit) 
- 
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) 
- 
build- 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) - Specified by:
- buildin interface- PersistentCacheFactory
 
 
-