Package com.launchdarkly.sdk.android
Enum ConnectionInformation.ConnectionMode
- java.lang.Object
-
- java.lang.Enum<ConnectionInformation.ConnectionMode>
-
- com.launchdarkly.sdk.android.ConnectionInformation.ConnectionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConnectionInformation.ConnectionMode>
- Enclosing interface:
- ConnectionInformation
public static enum ConnectionInformation.ConnectionMode extends java.lang.Enum<ConnectionInformation.ConnectionMode>
Enumerated type defining the possible values ofConnectionInformation.getConnectionMode()
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKGROUND_DISABLED
BACKGROUND_POLLING
OFFLINE
POLLING
SET_OFFLINE
SHUTDOWN
STREAMING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionInformation.ConnectionMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConnectionInformation.ConnectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STREAMING
public static final ConnectionInformation.ConnectionMode STREAMING
-
POLLING
public static final ConnectionInformation.ConnectionMode POLLING
-
BACKGROUND_POLLING
public static final ConnectionInformation.ConnectionMode BACKGROUND_POLLING
-
BACKGROUND_DISABLED
public static final ConnectionInformation.ConnectionMode BACKGROUND_DISABLED
-
OFFLINE
public static final ConnectionInformation.ConnectionMode OFFLINE
-
SET_OFFLINE
public static final ConnectionInformation.ConnectionMode SET_OFFLINE
-
SHUTDOWN
public static final ConnectionInformation.ConnectionMode SHUTDOWN
-
-
Method Detail
-
values
public static ConnectionInformation.ConnectionMode[] 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 (ConnectionInformation.ConnectionMode c : ConnectionInformation.ConnectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionInformation.ConnectionMode 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
-
-