Package akka.cluster

Class HeartbeatNodeRing

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

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

    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.
        Parameters:
        sender - (undocumented)
        Returns:
        (undocumented)
      • $colon$plus

        public HeartbeatNodeRing $colon$plus​(UniqueAddress node)
        Add a node to the ring.
        Parameters:
        node - (undocumented)
        Returns:
        (undocumented)
      • $colon$minus

        public HeartbeatNodeRing $colon$minus​(UniqueAddress node)
        Remove a node from the ring.
        Parameters:
        node - (undocumented)
        Returns:
        (undocumented)
      • 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
      • hashCode

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

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

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