diff --git a/akka-actor/src/main/scala/akka/dispatch/MessageHandling.scala b/akka-actor/src/main/scala/akka/dispatch/MessageHandling.scala index ae9d3f1ff9..42caa4fca8 100644 --- a/akka-actor/src/main/scala/akka/dispatch/MessageHandling.scala +++ b/akka-actor/src/main/scala/akka/dispatch/MessageHandling.scala @@ -127,6 +127,10 @@ trait MessageDispatcher { } } + /** + * Only "private[akka] for the sake of intercepting calls, DO NOT CALL THIS OUTSIDE OF THE DISPATCHER, + * and only call it under the dispatcher-guard, see "attach" for the only invocation + */ private[akka] def register(actorRef: ActorRef) { if (actorRef.mailbox eq null) actorRef.mailbox = createMailbox(actorRef) @@ -139,6 +143,10 @@ trait MessageDispatcher { } } + /** + * Only "private[akka] for the sake of intercepting calls, DO NOT CALL THIS OUTSIDE OF THE DISPATCHER, + * and only call it under the dispatcher-guard, see "detach" for the only invocation + */ private[akka] def unregister(actorRef: ActorRef) = { if (uuids remove actorRef.uuid) { cleanUpMailboxFor(actorRef)