메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |
리턴 | System |
public Select ( object message, |
||
message | object | The message that is being routed |
routees | A collection of routees to choose from when receiving the |
|
리턴 |
public WithHashMapping ( ConsistentHashMapping mapping ) : |
||
mapping | ConsistentHashMapping | The |
리턴 |