public static enum CachedFile.CachingStrategy extends Enum<CachedFile.CachingStrategy>
Enum Constant and Description |
---|
IfModifiedSince
Similar to MaxAge, considers the cache stale when a certain age is
exceeded.
|
MaxAge
If cached file on disk is older than a certain time (7 days by default),
consider the cache stale and try to download the file again.
|
Modifier and Type | Method and Description |
---|---|
static CachedFile.CachingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachedFile.CachingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachedFile.CachingStrategy MaxAge
public static final CachedFile.CachingStrategy IfModifiedSince
public static CachedFile.CachingStrategy[] values()
for (CachedFile.CachingStrategy c : CachedFile.CachingStrategy.values()) System.out.println(c);
public static CachedFile.CachingStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null