akka.routing
Class ConsistentActorRef
java.lang.Object
akka.routing.ConsistentActorRef
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class ConsistentActorRef
- extends java.lang.Object
- implements scala.Product, scala.Serializable
INTERNAL API
Important to use ActorRef with full address, with host and port, in the hash ring,
so that same ring is produced on different nodes.
The ConsistentHash uses toString of the ring nodes, and the ActorRef itself
isn't a good representation, because LocalActorRef doesn't include the
host and port.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
ConsistentActorRef
public ConsistentActorRef(ActorRef actorRef,
Address selfAddress)
actorRef
public ActorRef actorRef()
selfAddress
public Address selfAddress()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object