Class HeartbeatHistory$

java.lang.Object
org.apache.pekko.remote.HeartbeatHistory$
All Implemented Interfaces:
Serializable

public class HeartbeatHistory$ extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HeartbeatHistory$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.remote.HeartbeatHistory
    apply(int maxSampleSize)
    Create an empty HeartbeatHistory, without any history.
    org.apache.pekko.remote.HeartbeatHistory
    apply(int maxSampleSize, scala.collection.immutable.IndexedSeq<Object> intervals, long intervalSum, long squaredIntervalSum)
    Holds the heartbeat statistics for a specific node Address.
    scala.Option<scala.Tuple4<Object,scala.collection.immutable.IndexedSeq<Object>,Object,Object>>
    unapply(org.apache.pekko.remote.HeartbeatHistory x$0)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

      public static final HeartbeatHistory$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • HeartbeatHistory$

      public HeartbeatHistory$()
  • Method Details

    • apply

      public org.apache.pekko.remote.HeartbeatHistory apply(int maxSampleSize)
      Create an empty HeartbeatHistory, without any history. Can only be used as starting point for appending intervals. The stats (mean, variance, stdDeviation) are not defined for for empty HeartbeatHistory, i.e. throws ArithmeticException.
    • apply

      public org.apache.pekko.remote.HeartbeatHistory apply(int maxSampleSize, scala.collection.immutable.IndexedSeq<Object> intervals, long intervalSum, long squaredIntervalSum)
      Holds the heartbeat statistics for a specific node Address. It is capped by the number of samples specified in maxSampleSize.

      The stats (mean, variance, stdDeviation) are not defined for for empty HeartbeatHistory, i.e. throws ArithmeticException.

    • unapply

      public scala.Option<scala.Tuple4<Object,scala.collection.immutable.IndexedSeq<Object>,Object,Object>> unapply(org.apache.pekko.remote.HeartbeatHistory x$0)