Class LatencyMetric

  • All Implemented Interfaces:
    java.io.Serializable

    public final class LatencyMetric
    extends java.lang.Object
    implements java.io.Serializable
    Metric class for recording latencymark and the time when the latencymark is recorded. The traversal time can be calculated by comparing the time when the latencymark was created with the time recorded.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LatencyMetric​(LatencyMark latencymark, long timestamp)
      Constructor with the latencymark and timestamp.
    • Constructor Detail

      • LatencyMetric

        public LatencyMetric​(LatencyMark latencymark,
                             long timestamp)
        Constructor with the latencymark and timestamp.
        Parameters:
        latencymark - the latencymark to record.
        timestamp - When the latencymark was received.
    • Method Detail

      • getLatencymark

        public LatencyMark getLatencymark()
        Get the recorded latency mark.
        Returns:
        latency mark.
      • getTimestamp

        public long getTimestamp()
        Get the timestamp when the latencymark is received.
        Returns:
        timestamp when it is received.
      • getLatency

        public long getLatency()
        Returns:
        the latency.