rename /null to /deadLetters, fixes #1492

This commit is contained in:
Roland 2011-12-13 18:29:51 +01:00
parent c16fcebc21
commit 7da61b6cc1
3 changed files with 5 additions and 5 deletions

View file

@ -84,7 +84,7 @@ class ActorLookupSpec extends AkkaSpec with DefaultTimeout {
"find system-generated actors" in { "find system-generated actors" in {
system.actorFor("/user") must be === user system.actorFor("/user") must be === user
system.actorFor("/null") must be === system.deadLetters system.actorFor("/deadLetters") must be === system.deadLetters
system.actorFor("/system") must be === syst system.actorFor("/system") must be === syst
system.actorFor(syst.path) must be === syst system.actorFor(syst.path) must be === syst
system.actorFor(syst.path.toString) must be === syst system.actorFor(syst.path.toString) must be === syst
@ -93,10 +93,10 @@ class ActorLookupSpec extends AkkaSpec with DefaultTimeout {
system.actorFor(root.path) must be === root system.actorFor(root.path) must be === root
system.actorFor(root.path.toString) must be === root system.actorFor(root.path.toString) must be === root
system.actorFor("user") must be === user system.actorFor("user") must be === user
system.actorFor("null") must be === system.deadLetters system.actorFor("deadLetters") must be === system.deadLetters
system.actorFor("system") must be === syst system.actorFor("system") must be === syst
system.actorFor("user/") must be === user system.actorFor("user/") must be === user
system.actorFor("null/") must be === system.deadLetters system.actorFor("deadLetters/") must be === system.deadLetters
system.actorFor("system/") must be === syst system.actorFor("system/") must be === syst
} }

View file

@ -410,7 +410,7 @@ class DeadLetterActorRef(val eventStream: EventStream) extends MinimalActorRef {
} }
private[akka] def init(dispatcher: MessageDispatcher, rootPath: ActorPath) { private[akka] def init(dispatcher: MessageDispatcher, rootPath: ActorPath) {
_path = rootPath / "null" _path = rootPath / "deadLetters"
brokenPromise = new KeptPromise[Any](Left(new ActorKilledException("In DeadLetterActorRef - promises are always broken.")))(dispatcher) brokenPromise = new KeptPromise[Any](Left(new ActorKilledException("In DeadLetterActorRef - promises are always broken.")))(dispatcher)
} }

View file

@ -255,7 +255,7 @@ other actors are found. The next level consists of the following:
- ``"/system"`` is the guardian actor for all system-created top-level actors, - ``"/system"`` is the guardian actor for all system-created top-level actors,
e.g. logging listeners or actors automatically deployed by configuration at e.g. logging listeners or actors automatically deployed by configuration at
the start of the actor system. the start of the actor system.
- ``"/null"`` is the dead letter actor, which is where all messages sent to - ``"/deadLetters"`` is the dead letter actor, which is where all messages sent to
stopped or non-existing actors are re-routed. stopped or non-existing actors are re-routed.
- ``"/temp"`` is the guardian for all short-lived system-created actors, e.g. - ``"/temp"`` is the guardian for all short-lived system-created actors, e.g.
those which are used in the implementation of :meth:`ActorRef.ask`. those which are used in the implementation of :meth:`ActorRef.ask`.