public final class ConsistentHashingRoutingLogic extends java.lang.Object implements RoutingLogic, scala.Product, scala.Serializable
| Constructor and Description |
|---|
ConsistentHashingRoutingLogic(ActorSystem system) |
ConsistentHashingRoutingLogic(ActorSystem system,
int virtualNodesFactor,
scala.PartialFunction<java.lang.Object,java.lang.Object> hashMapping) |
| Modifier and Type | Method and Description |
|---|---|
static Address |
defaultAddress(ActorSystem system) |
scala.PartialFunction<java.lang.Object,java.lang.Object> |
hashMapping() |
Routee |
select(java.lang.Object message,
scala.collection.immutable.IndexedSeq<Routee> routees)
Pick the destination for a given message.
|
ActorSystem |
system() |
int |
virtualNodesFactor() |
int |
vnodes() |
ConsistentHashingRoutingLogic |
withHashMapper(ConsistentHashingRouter.ConsistentHashMapper mapper) |
ConsistentHashingRoutingLogic |
withVirtualNodesFactor(int vnodes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ConsistentHashingRoutingLogic(ActorSystem system, int virtualNodesFactor, scala.PartialFunction<java.lang.Object,java.lang.Object> hashMapping)
public ConsistentHashingRoutingLogic(ActorSystem system)
public static Address defaultAddress(ActorSystem system)
public ActorSystem system()
public int virtualNodesFactor()
public scala.PartialFunction<java.lang.Object,java.lang.Object> hashMapping()
public int vnodes()
public ConsistentHashingRoutingLogic withVirtualNodesFactor(int vnodes)
public ConsistentHashingRoutingLogic withHashMapper(ConsistentHashingRouter.ConsistentHashMapper mapper)
public Routee select(java.lang.Object message, scala.collection.immutable.IndexedSeq<Routee> routees)
RoutingLogicroutees, but in the end it is up to the implementation to
return whatever Routee to use for sending a specific message.
When implemented from Java it can be good to know that
routees.apply(index) can be used to get an element
from the IndexedSeq.
select in interface RoutingLogicmessage - (undocumented)routees - (undocumented)