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 Details

  • Constructor Details

    • PerThreadRefDbCache

      public PerThreadRefDbCache()
  • Method Details

    • getRefDatabase

      public static org.eclipse.jgit.lib.RefDatabase getRefDatabase(File path, org.eclipse.jgit.lib.RefDatabase refDb)
    • computeIfAbsent

      public org.eclipse.jgit.lib.RefDatabase computeIfAbsent(File path, Function<? super File,? extends org.eclipse.jgit.lib.RefDatabase> mappingFunction)