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 FileHashCacheEngine
public void putSize(Path path, long value)
putSize
in interface FileHashCacheEngine
public void invalidate(Path path)
invalidate
in interface FileHashCacheEngine
public void invalidateWithParents(Path path)
invalidateWithParents
in interface FileHashCacheEngine
public com.google.common.hash.HashCode get(Path path) throws IOException
get
in interface FileHashCacheEngine
IOException
public com.google.common.hash.HashCode getForArchiveMember(Path archiveRelativePath, Path memberPath) throws IOException
getForArchiveMember
in interface FileHashCacheEngine
IOException
@Nullable public HashCodeAndFileType getIfPresent(Path path)
getIfPresent
in interface FileHashCacheEngine
@Nullable public Long getSizeIfPresent(Path path)
getSizeIfPresent
in interface FileHashCacheEngine
public long getSize(Path relativePath) throws IOException
getSize
in interface FileHashCacheEngine
IOException
public void invalidateAll()
invalidateAll
in interface FileHashCacheEngine
public ConcurrentMap<Path,HashCodeAndFileType> asMap()
asMap
in interface FileHashCacheEngine
public List<AbstractBuckEvent> getStatsEvents()
getStatsEvents
in interface FileHashCacheEngine