public enum CachingStrategy extends java.lang.Enum<CachingStrategy>
| Enum Constant and Description |
|---|
CACHE_FIRST |
CACHE_FIRST_ASYNCH_REMOTE |
CACHE_FIRST_WITH_CACHE_FORCED_ON_FAIL |
CACHE_FORCED_FIRST_ASYNCH_REMOTE |
CACHE_ONLY |
NO_CACHE |
REMOTE_FIRST |
| Modifier and Type | Method and Description |
|---|---|
abstract <T> T |
execute(CachedHttpService cachedHttpService,
Parser parser) |
static CachingStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CachingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachingStrategy NO_CACHE
public static final CachingStrategy CACHE_FIRST
public static final CachingStrategy CACHE_FIRST_ASYNCH_REMOTE
public static final CachingStrategy CACHE_FIRST_WITH_CACHE_FORCED_ON_FAIL
public static final CachingStrategy CACHE_FORCED_FIRST_ASYNCH_REMOTE
public static final CachingStrategy CACHE_ONLY
public static final CachingStrategy REMOTE_FIRST
public static CachingStrategy[] values()
for (CachingStrategy c : CachingStrategy.values()) System.out.println(c);
public static CachingStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract <T> T execute(CachedHttpService cachedHttpService, Parser parser)