Package akka.cluster

Class HeartbeatNodeRing

  • All Implemented Interfaces:, scala.Equals, scala.Product

    public final class HeartbeatNodeRing
    extends java.lang.Object
    implements scala.Product,

    Data structure for picking heartbeat receivers. The node ring is shuffled by deterministic hashing to avoid picking physically co-located neighbors.

    It is immutable, i.e. the methods return new instances.

    See Also:
    Serialized Form
    • Constructor Detail

      • HeartbeatNodeRing

        public HeartbeatNodeRing​(UniqueAddress selfAddress,
                                 scala.collection.immutable.Set<UniqueAddress> nodes,
                                 scala.collection.immutable.Set<UniqueAddress> unreachable,
                                 int monitoredByNrOfMembers)
    • Method Detail

      • nodes

        public scala.collection.immutable.Set<UniqueAddress> nodes()
      • unreachable

        public scala.collection.immutable.Set<UniqueAddress> unreachable()
      • monitoredByNrOfMembers

        public int monitoredByNrOfMembers()
      • myReceivers

        public scala.collection.immutable.Set<UniqueAddress> myReceivers()
      • receivers

        public scala.collection.immutable.Set<UniqueAddress> receivers​(UniqueAddress sender)
        The receivers to use from a specified sender.
      • copy$default$2

        public scala.collection.immutable.Set<UniqueAddress> copy$default$2()
      • copy$default$3

        public scala.collection.immutable.Set<UniqueAddress> copy$default$3()
      • copy$default$4

        public int copy$default$4()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        equals in class java.lang.Object