Class DescriptiveCounter

  • All Implemented Interfaces:
    com.codahale.metrics.Counting, com.codahale.metrics.Metric, DescriptiveMetric

    public class DescriptiveCounter
    extends com.codahale.metrics.Counter
    implements DescriptiveMetric
    • Constructor Summary

      Constructors 
      Constructor Description
      DescriptiveCounter​(java.util.function.Function<java.util.Locale,​java.lang.String> description, java.util.function.Function<java.util.Locale,​java.lang.String> units)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription​(java.util.Locale locale)
      A short description of what this metric represents.
      java.lang.String getUnits​(java.util.Locale locale)
      A short string representing the units of this metric.
      • Methods inherited from class com.codahale.metrics.Counter

        dec, dec, getCount, inc, inc
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DescriptiveCounter

        public DescriptiveCounter​(java.util.function.Function<java.util.Locale,​java.lang.String> description,
                                  java.util.function.Function<java.util.Locale,​java.lang.String> units)
    • Method Detail

      • getDescription

        public java.lang.String getDescription​(java.util.Locale locale)
        Description copied from interface: DescriptiveMetric
        A short description of what this metric represents. For example "JVM Heap Size" or "Thread Count" or "Subsystem X script executions"
        Specified by:
        getDescription in interface DescriptiveMetric
      • getUnits

        public java.lang.String getUnits​(java.util.Locale locale)
        Description copied from interface: DescriptiveMetric
        A short string representing the units of this metric. For example "MB" or "threads" or "executions"
        Specified by:
        getUnits in interface DescriptiveMetric