Package akka.cluster
Class UniqueAddress
- java.lang.Object
-
- akka.cluster.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.Product, java.io.Serializable, scala.math.Ordered<UniqueAddress>
Member identifier consisting of address and randomuid
. Theuid
is needed to be able to distinguish different incarnations of a member with same hostname and port.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UniqueAddress(Address address, int uid)
Deprecated.Use Long UID constructor instead.UniqueAddress(Address address, long longUid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Address
address()
static UniqueAddress
apply(Address address, int uid)
Deprecated.Use Long UID apply instead.static UniqueAddress
apply(Address address, long longUid)
static UniqueAddress
apply(UniqueAddress remoteUniqueAddress)
boolean
canEqual(java.lang.Object that)
int
compare(UniqueAddress that)
UniqueAddress
copy(Address address, int uid)
Deprecated.Use Long UID constructor instead.Address
copy$default$1()
int
copy$default$2()
boolean
equals(java.lang.Object obj)
int
hashCode()
long
longUid()
int
productArity()
java.lang.Object
productElement(int n)
java.lang.String
toString()
int
uid()
Deprecated.Use longUid instead.static scala.Option<scala.Tuple2<Address,java.lang.Object>>
unapply(UniqueAddress address)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
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(UniqueAddress remoteUniqueAddress)
-
apply
public static UniqueAddress apply(Address address, long longUid)
-
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()
- Overrides:
hashCode
in classjava.lang.Object
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int n)
- Specified by:
productElement
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object that)
- Specified by:
canEqual
in interfacescala.Equals
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compare
public int compare(UniqueAddress that)
- Specified by:
compare
in interfacescala.math.Ordered<UniqueAddress>
-
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 Stopscopy(Address, Long)
copy from being generated, useapply
instead.
-
copy$default$1
public Address copy$default$1()
-
copy$default$2
public int copy$default$2()
-
-