Exception(SerializationInfo info, StreamingContext context)
to be reached from AkkaException
and inheriting classes?
var config = ConfigurationFactory.ParseString(@"
routees.paths = [ using (var system = ActorSystem.Create("MySystem"))
{
var resizer = new DefaultResizer(3, 5, pressureThreshold: 1, rampupRate: 0.1d, backoffRate: 0.0d,
messagesPerResize: 1, backoffThreshold: 0.0d);
var pool = new ConsistentHashingPool(config);
pool.Resizer = resizer;
var router = system.ActorOf(Props.Create<TypedWorker>().WithRouter(pool));
akka.actor.deployment {
/router1 {
router = round-robin-pool
resizer {
enabled = on
lower-bound = 2
upper-bound = 3
}
}
router.type-mapping {
from-code = "Akka.Routing.NoRouter"
round-robin-pool = "Akka.Routing.RoundRobinPool"
round-robin-group = "Akka.Routing.RoundRobinGroup"
random-pool = "Akka.Routing.RandomPool"
random-group = "Akka.Routing.RandomGroup"
balancing-pool = "Akka.Routing.BalancingPool"
smallest-mailbox-pool = "Akka.Routing.SmallestMailboxPool"
broadcast-pool = "Akka.Routing.BroadcastPool"
broadcast-group = "Akka.Routing.BroadcastGroup"
scatter-gather-pool = "Akka.Routing.ScatterGatherFirstCompletedPool"
scatter-gather-group = "Akka.Routing.ScatterGatherFirstCompletedGroup"
consistent-hashing-pool = "Akka.Routing.ConsistentHashingPool"
consistent-hashing-group = "Akka.Routing.ConsistentHashingGroup"
}