Package com.apollographql.apollo
Enum ApolloCall.StatusEvent
- java.lang.Object
-
- java.lang.Enum<ApolloCall.StatusEvent>
-
- com.apollographql.apollo.ApolloCall.StatusEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ApolloCall.StatusEvent>
- Enclosing interface:
- ApolloCall<T>
public static enum ApolloCall.StatusEvent extends java.lang.Enum<ApolloCall.StatusEvent>
Represents a status event that corresponds to aApolloCallaction
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETEDApolloCallis finished its executionFETCH_CACHEApolloCallfetches response from cacheFETCH_NETWORKApolloCallfetches response from networkSCHEDULEDApolloCallis scheduled for execution
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApolloCall.StatusEventvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ApolloCall.StatusEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCHEDULED
public static final ApolloCall.StatusEvent SCHEDULED
ApolloCallis scheduled for execution
-
FETCH_CACHE
public static final ApolloCall.StatusEvent FETCH_CACHE
ApolloCallfetches response from cache
-
FETCH_NETWORK
public static final ApolloCall.StatusEvent FETCH_NETWORK
ApolloCallfetches response from network
-
COMPLETED
public static final ApolloCall.StatusEvent COMPLETED
ApolloCallis finished its execution
-
-
Method Detail
-
values
public static ApolloCall.StatusEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ApolloCall.StatusEvent c : ApolloCall.StatusEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApolloCall.StatusEvent valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-