Enum Class MetricType

java.lang.Object
java.lang.Enum<MetricType>
net.spy.memcached.metrics.MetricType
All Implemented Interfaces:
Serializable, Comparable<MetricType>, Constable

public enum MetricType extends Enum<MetricType>
Defines the type of metric collection to use. More detailed types provide more insight, but can come with more overhead during collection.
  • Enum Constant Details

    • OFF

      public static final MetricType OFF
      No metrics collection. If the "OFF" type is chosen, no metrics will be registered and collected.
    • PERFORMANCE

      public static final MetricType 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

      public static final MetricType 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

      public static MetricType[] 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

      public static MetricType valueOf(String name)
      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 name
      NullPointerException - if the argument is null