public abstract class DirCacheEntry extends Object
Constructor and Description |
---|
DirCacheEntry() |
Modifier and Type | Method and Description |
---|---|
abstract Path |
getCacheDir() |
abstract CacheReadMode |
getCacheReadMode() |
abstract Optional<Long> |
getMaxSizeBytes() |
abstract Optional<String> |
getName() |
static DirCacheEntry |
of(Optional<String> name,
Path cacheDir,
Optional<Long> maxSizeBytes,
CacheReadMode cacheReadMode) |
static DirCacheEntry |
of(Path cacheDir,
Optional<Long> maxSizeBytes,
CacheReadMode cacheReadMode) |
DirCacheEntry |
withCacheReadMode(CacheReadMode cacheReadMode) |
public abstract Path getCacheDir()
public abstract CacheReadMode getCacheReadMode()
public static DirCacheEntry of(Path cacheDir, Optional<Long> maxSizeBytes, CacheReadMode cacheReadMode)
public static DirCacheEntry of(Optional<String> name, Path cacheDir, Optional<Long> maxSizeBytes, CacheReadMode cacheReadMode)
public DirCacheEntry withCacheReadMode(CacheReadMode cacheReadMode)