Enum SubscriptionManagerState
- java.lang.Object
-
- java.lang.Enum<SubscriptionManagerState>
-
- com.apollographql.apollo.subscription.SubscriptionManagerState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SubscriptionManagerState>
public enum SubscriptionManagerState extends java.lang.Enum<SubscriptionManagerState>
Subscription manager state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVEIndicates there is active connection with the subscription server and GraphQL session has been initialized.CONNECTEDIndicates there is active connection with the subscription server, waiting for GraphQL session to be initialized.CONNECTINGIndicates manager is trying to connect to the subscription server.DISCONNECTEDIndicates there is no active connection to the subscription server.STOPPEDIndicates user stopped GraphQL session and disconnected from the subscription server.STOPPINGIndicates user initiates manager to stop GraphQL session and disconnect from the subscription server.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubscriptionManagerStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubscriptionManagerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISCONNECTED
public static final SubscriptionManagerState DISCONNECTED
Indicates there is no active connection to the subscription server.
-
CONNECTING
public static final SubscriptionManagerState CONNECTING
Indicates manager is trying to connect to the subscription server.
-
CONNECTED
public static final SubscriptionManagerState CONNECTED
Indicates there is active connection with the subscription server, waiting for GraphQL session to be initialized.
-
ACTIVE
public static final SubscriptionManagerState ACTIVE
Indicates there is active connection with the subscription server and GraphQL session has been initialized. Subscriptions are ready to use.
-
STOPPING
public static final SubscriptionManagerState STOPPING
Indicates user initiates manager to stop GraphQL session and disconnect from the subscription server.
-
STOPPED
public static final SubscriptionManagerState STOPPED
Indicates user stopped GraphQL session and disconnected from the subscription server.
-
-
Method Detail
-
values
public static SubscriptionManagerState[] 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 (SubscriptionManagerState c : SubscriptionManagerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubscriptionManagerState 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
-
-