erik
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
Thank you!
I will say that, even though I understand why this is the case, it's a bit strange in practice. Given the fact that multiple clients can connect to the same server, the ability to terminate that way is, well... perhaps a bit strange.
I suspect it will not be an issue now that I have figured it out, but this might be something that could use a brief call out in the documentation - even just a single sentence indicating that stopping a remote associated ActorRef will stop the associated actor as well.
Hi Erik,
Akka's semantics of stop I'd say is quite well documented, both in the reference documentation:
http://doc.akka.io/docs/akka/2.2.3/scala/actors.html#Stopping_actors
And in code:
" ActorRef does not have a method for terminating the actor it points to, use akka.actor.ActorRefFactory.stop(ref), or send a akka.actor.PoisonPill, for this purpose" - http://doc.akka.io/api/akka/2.2.3/#akka.actor.ActorRef
" abstract def
stop(actor: ActorRef): Unit
Stop the actor pointed to by the given akka.actor.ActorRef; this is an asynchronous operation, i.e. involves a message send." - http://doc.akka.io/api/akka/2.2.3/#akka.actor.ActorRefFactory
Cheers,
V