Package com.google.gerrit.server.cache
Class PerThreadRefDbCache
- java.lang.Object
-
- com.google.gerrit.server.cache.PerThreadRefDbCache
-
public class PerThreadRefDbCache extends Object
A per request thread cache of RefDatabases by directory (Project).
-
-
Field Summary
Fields Modifier and Type Field Description protected static PerThreadCache.Key<PerThreadRefDbCache>REFDB_CACHE_KEYprotected Map<File,org.eclipse.jgit.lib.RefDatabase>refDbByRefsDir
-
Constructor Summary
Constructors Constructor Description PerThreadRefDbCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.RefDatabasecomputeIfAbsent(File path, Function<? super File,? extends org.eclipse.jgit.lib.RefDatabase> mappingFunction)static org.eclipse.jgit.lib.RefDatabasegetRefDatabase(File path, org.eclipse.jgit.lib.RefDatabase refDb)
-
-
-
Field Detail
-
REFDB_CACHE_KEY
protected static final PerThreadCache.Key<PerThreadRefDbCache> REFDB_CACHE_KEY
-
-
Method Detail
-
getRefDatabase
public static org.eclipse.jgit.lib.RefDatabase getRefDatabase(File path, org.eclipse.jgit.lib.RefDatabase refDb)
-
-