Method | Description | |
---|---|---|
ConsistentHashingRoutingLogic ( ActorSystem system ) : System |
Initializes a new instance of the ConsistentHashingRoutingLogic class.
|
|
ConsistentHashingRoutingLogic ( ActorSystem system, int virtualNodesFactor, ConsistentHashMapping hashMapping ) : System |
Initializes a new instance of the ConsistentHashingRoutingLogic class.
|
|
Select ( object message, |
Picks a Routee to receive the message.
|
|
WithHashMapping ( ConsistentHashMapping mapping ) : |
Creates a new ConsistentHashingRoutingLogic router logic with a given ConsistentHashMapping.
|
public ConsistentHashingRoutingLogic ( ActorSystem system ) : System | ||
system | ActorSystem | The actor system that owns the router with this logic. |
return | System |
public ConsistentHashingRoutingLogic ( ActorSystem system, int virtualNodesFactor, ConsistentHashMapping hashMapping ) : System | ||
system | ActorSystem | The actor system that owns the router with this logic. |
virtualNodesFactor | int | The number of virtual nodes to use on the hash ring. |
hashMapping | ConsistentHashMapping | The consistent hash mapping function to use on incoming messages. |
return | System |
public Select ( object message, |
||
message | object | The message that is being routed |
routees | A collection of routees to choose from when receiving the |
|
return |
public WithHashMapping ( ConsistentHashMapping mapping ) : |
||
mapping | ConsistentHashMapping | The |
return |