@Immutable
public static final class FileCache.QueryResult
extends java.lang.Object
FileCache.QueryEvent indicating whether the cache
is hit, missed, or corrupted, a cause if the cache is corrupted, and an (optional) path to
the cached output file/directory.| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getCachedFile()
Returns the path to the cached output file/directory, can be null if the cache does not
want to expose this information.
|
java.lang.Throwable |
getCauseOfCorruption()
Returns a cause if the cache is corrupted, and null otherwise.
|
FileCache.QueryEvent |
getQueryEvent()
Returns the
FileCache.QueryEvent indicating whether the cache is hit, missed, or corrupted. |
@NonNull public FileCache.QueryEvent getQueryEvent()
FileCache.QueryEvent indicating whether the cache is hit, missed, or corrupted.@Nullable public java.lang.Throwable getCauseOfCorruption()
@Nullable public java.io.File getCachedFile()