Added lookup method in Dispatchers to provide a registry of configured dispatchers to be shared between actors. See #1458

This commit is contained in:
Patrik Nordwall 2011-12-13 07:35:28 +01:00
parent 03e731e098
commit eede488fd3
6 changed files with 57 additions and 20 deletions

View file

@ -187,7 +187,7 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
"creating actor with Props" in {
//#creating-props
import akka.actor.Props
val dispatcher = system.dispatcherFactory.newFromConfig("my-dispatcher")
val dispatcher = system.dispatcherFactory.lookup("my-dispatcher")
val myActor = system.actorOf(Props[MyActor].withDispatcher(dispatcher), name = "myactor")
//#creating-props