public static enum HttpCachePolicy.FetchStrategy extends java.lang.Enum<HttpCachePolicy.FetchStrategy>
| 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 HttpCachePolicy.FetchStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpCachePolicy.FetchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpCachePolicy.FetchStrategy CACHE_ONLY
public static final HttpCachePolicy.FetchStrategy NETWORK_ONLY
public static final HttpCachePolicy.FetchStrategy CACHE_FIRST
public static final HttpCachePolicy.FetchStrategy NETWORK_FIRST
public static HttpCachePolicy.FetchStrategy[] values()
for (HttpCachePolicy.FetchStrategy c : HttpCachePolicy.FetchStrategy.values()) System.out.println(c);
public static HttpCachePolicy.FetchStrategy 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