| ConsistentHashingPool Constructor (Int32, Resizer, SupervisorStrategy, String, Boolean, Int32, ConsistentHashMapping) |
Namespace:
Akka.Routing
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public ConsistentHashingPool(
int nrOfInstances,
Resizer resizer,
SupervisorStrategy supervisorStrategy,
string routerDispatcher,
bool usePoolDispatcher = false,
int virtualNodesFactor = 0,
ConsistentHashMapping hashMapping = null
)
new :
nrOfInstances : int *
resizer : Resizer *
supervisorStrategy : SupervisorStrategy *
routerDispatcher : string *
?usePoolDispatcher : bool *
?virtualNodesFactor : int *
?hashMapping : ConsistentHashMapping
(* Defaults:
let _usePoolDispatcher = defaultArg usePoolDispatcher false
let _virtualNodesFactor = defaultArg virtualNodesFactor 0
let _hashMapping = defaultArg hashMapping null
*)
-> ConsistentHashingPool
Parameters
- nrOfInstances
- Type: SystemInt32
The initial number of routees in the pool. - resizer
- Type: Akka.RoutingResizer
The resizer to use when dynamically allocating routees to the pool. - supervisorStrategy
- Type: Akka.ActorSupervisorStrategy
The strategy to use when supervising the pool. - routerDispatcher
- Type: SystemString
The dispatcher to use when passing messages to the routees. - usePoolDispatcher (Optional)
- Type: SystemBoolean
true to use the pool dispatcher; otherwise false. - virtualNodesFactor (Optional)
- Type: SystemInt32
The number of virtual nodes to use on the hash ring. - hashMapping (Optional)
- Type: Akka.RoutingConsistentHashMapping
The consistent hash mapping function to use on incoming messages.
See Also