Create Akka Software Manager

I have a scenario where I create actors on demand. I want to be able to identify Dispatcherand programmatically attach it to my actor.

Transaction: My is ActorSystemalready running, which means that it has already loaded all the configurations Akka.

It seems that it Dispatchershould be defined in application.confbefore creation ActorSystem, so I have two questions:

  • Is it possible to add a new configuration Akkain ActorSystemafter its launch?

  • Is there any other way to use Props[MyActor].withDispatcher("any-dispatcher")without Dispatcher, which is defined in the configuration ActorSystem?

+4
source share
1 answer

, , .

, , , , ActorSystem .

+4

All Articles