Class Metric


  • public class Metric
    extends Object
    Metric for perf stats collection.
    • Constructor Detail

      • Metric

        public Metric​(String name,
                      int count,
                      int elapsedNs,
                      boolean success)
      • Metric

        public Metric​(String name,
                      boolean success)
    • Method Detail

      • getName

        public String getName()
      • getCount

        public int getCount()
      • getElapsedNs

        public long getElapsedNs()
      • getMinNs

        public long getMinNs()
      • getMaxNs

        public long getMaxNs()
      • isSuccess

        public boolean isSuccess()
      • record

        public void record​(long elapsedNs)
      • incrementCount

        public void incrementCount()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object