Package akka.cluster

Class UniqueAddress

  • All Implemented Interfaces:, java.lang.Comparable<UniqueAddress>, scala.Equals, scala.math.Ordered<UniqueAddress>, scala.Product

    public final class UniqueAddress
    extends java.lang.Object
    implements scala.Product,, scala.math.Ordered<UniqueAddress>
    Member identifier consisting of address and random uid. The uid is needed to be able to distinguish different incarnations of a member with same hostname and port.
    See Also:
    Serialized Form
    • Constructor Detail

      • UniqueAddress

        public UniqueAddress​(Address address,
                             long longUid)
      • UniqueAddress

        public UniqueAddress​(Address address,
                             int uid)
        Use Long UID constructor instead. Since 2.4.11.
    • Method Detail

      • apply

        public static UniqueAddress apply​(Address address,
                                          int uid)
        Use Long UID apply instead. Since 2.4.11.
      • unapply

        public static scala.Option<scala.Tuple2<Address,​java.lang.Object>> unapply​(UniqueAddress address)
      • address

        public Address address()
      • longUid

        public long longUid()
      • hashCode

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

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

        public java.lang.Object productElement​(int n)
        Specified by:
        productElement in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object that)
        Specified by:
        canEqual in interface scala.Equals
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface scala.Equals
        equals in class java.lang.Object
      • toString

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

        public int uid()
        Use longUid instead. Since 2.4.11.
      • copy

        public UniqueAddress copy​(Address address,
                                  int uid)
        Use Long UID constructor instead. Since 2.4.11.
        For binary compatibility Stops copy(Address, Long) copy from being generated, use apply instead.
      • copy$default$1

        public Address copy$default$1()
      • copy$default$2

        public int copy$default$2()