Package akka.cluster

Class UniqueAddress

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

    public final class UniqueAddress
    extends java.lang.Object
    implements scala.math.Ordered<UniqueAddress>, scala.Product, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • UniqueAddress

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

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

      • apply

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

        public static UniqueAddress apply​(Address address,
                                          long longUid)
        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.
        Parameters:
        address - (undocumented)
        longUid - (undocumented)
        Returns:
        (undocumented)
      • unapply

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

        public Address address()
      • longUid

        public long longUid()
      • hashCode

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

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

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

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

        public int copy$default$2()
      • 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)
      • 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