Class PerThreadProjectCache

java.lang.Object
com.google.gerrit.server.cache.PerThreadProjectCache

public class PerThreadProjectCache extends Object
To prevent OOM errors on requests that would cache a lot of objects, this class enforces an internal limit after which no new elements are cached. All computeIfAbsentWithinLimit calls are served by invoking the Supplier after that.