Class LatencyAwarePolicy.Snapshot.Stats

  • Enclosing class:
    LatencyAwarePolicy.Snapshot

    public static class LatencyAwarePolicy.Snapshot.Stats
    extends Object
    A snapshot of the statistics on a given host kept by LatencyAwarePolicy.
    • Method Detail

      • lastUpdatedSince

        public long lastUpdatedSince()
        The number of nanoseconds since the last latency update was recorded (at the time of the snapshot).
        Returns:
        The number of nanoseconds since the last latency update was recorded (at the time of the snapshot).
      • getLatencyScore

        public long getLatencyScore()
        The latency score for the host this is the stats of at the time of the snapshot.
        Returns:
        the latency score for the host this is the stats of at the time of the snapshot, or -1L if not enough measurements have been taken to assign a score.
      • getMeasurementsCount

        public long getMeasurementsCount()
        The number of recorded latency measurements for the host this is the stats of.
        Returns:
        the number of recorded latency measurements for the host this is the stats of.