Package net.spy.memcached.metrics
Enum Class MetricType
- All Implemented Interfaces:
Serializable
,Comparable<MetricType>
,Constable
Defines the type of metric collection to use.
More detailed types provide more insight, but can come with more
overhead during collection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMetrics useful for debugging.No metrics collection.Metrics useful for performance-related tracing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricType
Returns the enum constant of this class with the specified name.static MetricType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
No metrics collection. If the "OFF" type is chosen, no metrics will be registered and collected. -
PERFORMANCE
Metrics useful for performance-related tracing. These metrics provide insight into the application performance and show how the operations flow in and out of the library. -
DEBUG
Metrics useful for debugging. These metrics (which include the PERFORMANCE metrics implicitly) provide more insight into the state of the library (for example node states), but it comes with larger aggregation overhead. Use during development and debug sessions.
-
-
Constructor Details
-
MetricType
private MetricType()
-
-
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
-