@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.util.Optional<java.io.File> |
getCachedFile()
Returns the path to the cached output file/directory, can be empty if the cache does not
want to expose this information.
|
java.util.Optional<java.lang.Throwable> |
getCauseOfCorruption()
Returns a cause if the cache is corrupted, and empty 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.@NonNull public java.util.Optional<java.lang.Throwable> getCauseOfCorruption()
@NonNull public java.util.Optional<java.io.File> getCachedFile()