Package io.piano.analytics
Enum Configuration.OfflineStorageMode
- java.lang.Object
-
- java.lang.Enum<Configuration.OfflineStorageMode>
-
- io.piano.analytics.Configuration.OfflineStorageMode
-
- All Implemented Interfaces:
Serializable,Comparable<Configuration.OfflineStorageMode>
- Enclosing class:
- Configuration
public static enum Configuration.OfflineStorageMode extends Enum<Configuration.OfflineStorageMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Configuration.OfflineStorageModefromString(String s)static Configuration.OfflineStorageModevalueOf(String name)Returns the enum constant of this type with the specified name.static Configuration.OfflineStorageMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final Configuration.OfflineStorageMode ALWAYS
Hits are stored in all cases and requires calling method to send
-
REQUIRED
public static final Configuration.OfflineStorageMode REQUIRED
Hits are sent if network is available, stored otherwise
-
NEVER
public static final Configuration.OfflineStorageMode NEVER
Hits are sent if network is available, lost otherwise
-
-
Method Detail
-
values
public static Configuration.OfflineStorageMode[] 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 (Configuration.OfflineStorageMode c : Configuration.OfflineStorageMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Configuration.OfflineStorageMode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
public static Configuration.OfflineStorageMode fromString(String s)
-
-