Class LatencyMetrics

java.lang.Object
org.apache.cassandra.metrics.LatencyMetrics
Direct Known Subclasses:
ClientRequestMetrics

public class LatencyMetrics extends Object
Metrics about latencies
  • Field Details

  • Constructor Details

    • LatencyMetrics

      public LatencyMetrics(String type, String scope)
      Create LatencyMetrics with given group, type, and scope. Name prefix for each metric will be empty.
      Parameters:
      type - Type name
      scope - Scope
    • LatencyMetrics

      public LatencyMetrics(String type, String namePrefix, String scope)
      Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.
      Parameters:
      type - Type name
      namePrefix - Prefix to append to each metric name
      scope - Scope of metrics
    • LatencyMetrics

      public LatencyMetrics(MetricNameFactory factory, String namePrefix)
      Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.
      Parameters:
      factory - MetricName factory to use
      namePrefix - Prefix to append to each metric name
    • LatencyMetrics

      public LatencyMetrics(MetricNameFactory factory, MetricNameFactory aliasFactory, String namePrefix)
    • LatencyMetrics

      public LatencyMetrics(MetricNameFactory factory, String namePrefix, LatencyMetrics... parents)
      Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope. Any updates to this will also run on parent
      Parameters:
      factory - MetricName factory to use
      namePrefix - Prefix to append to each metric name
      parents - any amount of parents to replicate updates to
  • Method Details

    • addNano

      public void addNano(long nanos)
      takes nanoseconds
    • release

      public void release()