Class FileDiffWeigher
- java.lang.Object
-
- com.google.gerrit.server.patch.filediff.FileDiffWeigher
-
- All Implemented Interfaces:
com.google.common.cache.Weigher<FileDiffCacheKey,FileDiffOutput>
public class FileDiffWeigher extends Object implements com.google.common.cache.Weigher<FileDiffCacheKey,FileDiffOutput>
A weigher for theFileDiffCache
key and value. This is used by the cache backend to assign weights for cache entries and is used for evictions.
-
-
Constructor Summary
Constructors Constructor Description FileDiffWeigher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
weigh(FileDiffCacheKey key, FileDiffOutput fileDiffOutput)
-
-
-
Method Detail
-
weigh
public int weigh(FileDiffCacheKey key, FileDiffOutput fileDiffOutput)
- Specified by:
weigh
in interfacecom.google.common.cache.Weigher<FileDiffCacheKey,FileDiffOutput>
-
-