export supervision tools in Act trait, and other review fixes
- add more cross references to ActorDSL docs - improve SBT command line for running the multi-node test - correct small error in Restart Hooks section of actors.rst
This commit is contained in:
parent
3627b6cb4c
commit
be877a6197
6 changed files with 55 additions and 12 deletions
|
|
@ -406,4 +406,12 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
|
|||
lastSender must be === system.actorFor("/user")
|
||||
}
|
||||
|
||||
"using ActorDSL outside of akka.actor package" in {
|
||||
import akka.actor.ActorDSL._
|
||||
actor(new Act {
|
||||
superviseWith(OneForOneStrategy() { case _ ⇒ Stop; Restart; Resume; Escalate })
|
||||
superviseWith(AllForOneStrategy() { case _ ⇒ Stop; Restart; Resume; Escalate })
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue