public class DelegatingFileHashCacheEngine extends Object implements FileHashCacheEngine
FileHashCacheEngine.ValueLoader<T>| Constructor and Description |
|---|
DelegatingFileHashCacheEngine(FileHashCacheEngine delegate) |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentMap<Path,HashCodeAndFileType> |
asMap() |
com.google.common.hash.HashCode |
get(Path path) |
com.google.common.hash.HashCode |
getForArchiveMember(Path archiveRelativePath,
Path memberPath) |
HashCodeAndFileType |
getIfPresent(Path path) |
long |
getSize(Path relativePath) |
Long |
getSizeIfPresent(Path path) |
List<AbstractBuckEvent> |
getStatsEvents() |
void |
invalidate(Path path) |
void |
invalidateAll() |
void |
invalidateWithParents(Path path) |
void |
put(Path path,
HashCodeAndFileType value) |
void |
putSize(Path path,
long value) |
public DelegatingFileHashCacheEngine(FileHashCacheEngine delegate)
public void put(Path path, HashCodeAndFileType value)
put in interface FileHashCacheEnginepublic void putSize(Path path, long value)
putSize in interface FileHashCacheEnginepublic void invalidate(Path path)
invalidate in interface FileHashCacheEnginepublic void invalidateWithParents(Path path)
invalidateWithParents in interface FileHashCacheEnginepublic com.google.common.hash.HashCode get(Path path) throws IOException
get in interface FileHashCacheEngineIOExceptionpublic com.google.common.hash.HashCode getForArchiveMember(Path archiveRelativePath, Path memberPath) throws IOException
getForArchiveMember in interface FileHashCacheEngineIOException@Nullable public HashCodeAndFileType getIfPresent(Path path)
getIfPresent in interface FileHashCacheEngine@Nullable public Long getSizeIfPresent(Path path)
getSizeIfPresent in interface FileHashCacheEnginepublic long getSize(Path relativePath) throws IOException
getSize in interface FileHashCacheEngineIOExceptionpublic void invalidateAll()
invalidateAll in interface FileHashCacheEnginepublic ConcurrentMap<Path,HashCodeAndFileType> asMap()
asMap in interface FileHashCacheEnginepublic List<AbstractBuckEvent> getStatsEvents()
getStatsEvents in interface FileHashCacheEngine