public static enum ConnectionRequest.CachingMode extends Enum<ConnectionRequest.CachingMode>
There are 5 caching modes:
OFF
is the default, meaning no caching.
SMART
means all get requests are cached intelligently and caching is "mostly" seamless.
MANUAL
means that the developer is responsible for the actual caching but the system will not do a
request on a resource that's already "fresh".
OFFLINE
will fetch data from the cache and wont try to go to the server. It will generate a 404 error
if data isn't available.
OFFLINE_FIRST
works the same way as offline but if data isn't available locally it will try to
connect to the server.
Enum Constant and Description |
---|
MANUAL |
OFF |
OFFLINE |
OFFLINE_FIRST |
SMART |
Modifier and Type | Method and Description |
---|---|
static ConnectionRequest.CachingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionRequest.CachingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
public static final ConnectionRequest.CachingMode OFF
public static final ConnectionRequest.CachingMode MANUAL
public static final ConnectionRequest.CachingMode SMART
public static final ConnectionRequest.CachingMode OFFLINE
public static final ConnectionRequest.CachingMode OFFLINE_FIRST
public static ConnectionRequest.CachingMode[] values()
for (ConnectionRequest.CachingMode c : ConnectionRequest.CachingMode.values()) System.out.println(c);
public static ConnectionRequest.CachingMode 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