| Pool Constructor |
Initializes a new instance of the
Pool class.
Note |
---|
If a routerDispatcher is not provided, this constructor sets up
the pool to use the default dispatcher DefaultDispatcherId.
|
Namespace:
Akka.Routing
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax protected Pool(
int nrOfInstances,
Resizer resizer,
SupervisorStrategy supervisorStrategy,
string routerDispatcher,
bool usePoolDispatcher
)
new :
nrOfInstances : int *
resizer : Resizer *
supervisorStrategy : SupervisorStrategy *
routerDispatcher : string *
usePoolDispatcher : bool -> Pool
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
- Type: SystemBoolean
true to use the pool dispatcher; otherwise false.
See Also