public interface FileHashCacheEngine
Modifier and Type | Interface and Description |
---|---|
static interface |
FileHashCacheEngine.ValueLoader<T> |
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) |
void put(Path path, HashCodeAndFileType value)
void putSize(Path path, long value)
void invalidate(Path path)
void invalidateWithParents(Path path)
com.google.common.hash.HashCode get(Path path) throws IOException
IOException
com.google.common.hash.HashCode getForArchiveMember(Path archiveRelativePath, Path memberPath) throws IOException
IOException
@Nullable HashCodeAndFileType getIfPresent(Path path)
long getSize(Path relativePath) throws IOException
IOException
void invalidateAll()
ConcurrentMap<Path,HashCodeAndFileType> asMap()
List<AbstractBuckEvent> getStatsEvents()