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, putSizepublic StatsTrackingFileHashCacheEngine(FileHashCacheEngine delegate, String subcategory)
public void invalidate(Path path)
invalidate in interface FileHashCacheEngineinvalidate in class DelegatingFileHashCacheEnginepublic void invalidateWithParents(Path path)
invalidateWithParents in interface FileHashCacheEngineinvalidateWithParents in class DelegatingFileHashCacheEnginepublic com.google.common.hash.HashCode get(Path path) throws IOException
get in interface FileHashCacheEngineget in class DelegatingFileHashCacheEngineIOExceptionpublic com.google.common.hash.HashCode getForArchiveMember(Path archiveRelativePath, Path memberPath) throws IOException
getForArchiveMember in interface FileHashCacheEnginegetForArchiveMember in class DelegatingFileHashCacheEngineIOExceptionpublic List<AbstractBuckEvent> getStatsEvents()
getStatsEvents in interface FileHashCacheEnginegetStatsEvents in class DelegatingFileHashCacheEngine