akka.cluster
Class UniqueAddress

java.lang.Object
  extended by akka.cluster.UniqueAddress
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UniqueAddress>, scala.Equals, scala.math.Ordered<UniqueAddress>, scala.Product

public class UniqueAddress
extends java.lang.Object
implements scala.math.Ordered<UniqueAddress>, scala.Product, scala.Serializable

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 Summary
UniqueAddress(Address address, int uid)
           
 
Method Summary
 Address address()
           
 int compare(UniqueAddress that)
           
 int hashCode()
           
 int uid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.math.Ordered
$greater, $greater$eq, $less, $less$eq, compareTo
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

UniqueAddress

public UniqueAddress(Address address,
                     int uid)
Method Detail

address

public Address address()

uid

public int uid()

hashCode

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

compare

public int compare(UniqueAddress that)
Specified by:
compare in interface scala.math.Ordered<UniqueAddress>