PoolDeployementStrategy class

Class is used by initialization in PoolRouterActor.

Constructors

PoolDeployementStrategy.new({required WorkerActorFactory<WorkerActor> workerFactory, required PoolRoutingStrategy routingStrategy, int poolSize = 2, Map<String, dynamic>? data})

Properties

data Map<String, dynamic>?
Some data that is transferred to all worker actor in pool.
final
hashCode int
The hash code for this object.
no setterinherited
poolSize int
Size of worker pool in PoolRouterActor.
latefinal
routingStrategy PoolRoutingStrategy
Routing strategy is used by message routing in PoolRouterActor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workerFactory WorkerActorFactory<WorkerActor>
Instanse of WorkerActorFactory used by creating worker pool in PoolRouterActor.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited