public enum HttpCacheFetchStrategy extends java.lang.Enum<HttpCacheFetchStrategy>
Enum Constant and Description |
---|
CACHE_FIRST
Signals the apollo client to first fetch the GraphQL query response from the http cache.
|
CACHE_ONLY
Signals the apollo client to fetch the GraphQL query response from the http cache only.
|
NETWORK_FIRST
Signals the apollo client to first fetch the GraphQL query response from the network.
|
NETWORK_ONLY
Signals the apollo client to fetch the GraphQL query response from the network only.
|
Modifier and Type | Method and Description |
---|---|
static HttpCacheFetchStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpCacheFetchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpCacheFetchStrategy CACHE_ONLY
public static final HttpCacheFetchStrategy NETWORK_ONLY
public static final HttpCacheFetchStrategy CACHE_FIRST
public static final HttpCacheFetchStrategy NETWORK_FIRST
public static HttpCacheFetchStrategy[] values()
for (HttpCacheFetchStrategy c : HttpCacheFetchStrategy.values()) System.out.println(c);
public static HttpCacheFetchStrategy 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 null