Package com.dmurph.tracking
Enum Class JGoogleAnalyticsTracker.DispatchMode
java.lang.Object
java.lang.Enum<JGoogleAnalyticsTracker.DispatchMode>
com.dmurph.tracking.JGoogleAnalyticsTracker.DispatchMode
- All Implemented Interfaces:
Serializable
,Comparable<JGoogleAnalyticsTracker.DispatchMode>
,Constable
- Enclosing class:
JGoogleAnalyticsTracker
public static enum JGoogleAnalyticsTracker.DispatchMode
extends Enum<JGoogleAnalyticsTracker.DispatchMode>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEach tracking call spawns a new thread to make the http requestEach tracking request is added to a queue, and a single dispatch thread makes the requests.Each tracking call will wait until the http request completes before returning -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static JGoogleAnalyticsTracker.DispatchMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYNCHRONOUS
Each tracking call will wait until the http request completes before returning -
MULTI_THREAD
Each tracking call spawns a new thread to make the http request -
SINGLE_THREAD
Each tracking request is added to a queue, and a single dispatch thread makes the requests.
-
-
Constructor Details
-
DispatchMode
private DispatchMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-