Class LatencyMetrics

  • Direct Known Subclasses:
    ClientRequestMetrics

    public class LatencyMetrics
    extends java.lang.Object
    Metrics about latencies
    • Constructor Detail

      • LatencyMetrics

        public LatencyMetrics​(java.lang.String type,
                              java.lang.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​(java.lang.String type,
                              java.lang.String namePrefix,
                              java.lang.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,
                              java.lang.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,
                              java.lang.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 Detail

      • addNano

        public void addNano​(long nanos)
        takes nanoseconds
      • release

        public void release()