public class StatsTrackingFileHashCacheEngine extends DelegatingFileHashCacheEngine
FileHashCacheEngine.ValueLoader<T>
Constructor and Description |
---|
StatsTrackingFileHashCacheEngine(FileHashCacheEngine delegate,
String subcategory) |
Modifier and Type | Method and Description |
---|---|
com.google.common.hash.HashCode |
get(Path path) |
com.google.common.hash.HashCode |
getForArchiveMember(Path archiveRelativePath,
Path memberPath) |
List<AbstractBuckEvent> |
getStatsEvents() |
void |
invalidate(Path path) |
void |
invalidateWithParents(Path path) |
asMap, getIfPresent, getSize, getSizeIfPresent, invalidateAll, put, putSize
public StatsTrackingFileHashCacheEngine(FileHashCacheEngine delegate, String subcategory)
public void invalidate(Path path)
invalidate
in interface FileHashCacheEngine
invalidate
in class DelegatingFileHashCacheEngine
public void invalidateWithParents(Path path)
invalidateWithParents
in interface FileHashCacheEngine
invalidateWithParents
in class DelegatingFileHashCacheEngine
public com.google.common.hash.HashCode get(Path path) throws IOException
get
in interface FileHashCacheEngine
get
in class DelegatingFileHashCacheEngine
IOException
public com.google.common.hash.HashCode getForArchiveMember(Path archiveRelativePath, Path memberPath) throws IOException
getForArchiveMember
in interface FileHashCacheEngine
getForArchiveMember
in class DelegatingFileHashCacheEngine
IOException
public List<AbstractBuckEvent> getStatsEvents()
getStatsEvents
in interface FileHashCacheEngine
getStatsEvents
in class DelegatingFileHashCacheEngine