Accesing asking/telling with the global name of an actor

24 views
Skip to first unread message

Erdem Eser Ekinci

unread,
Feb 4, 2021, 8:13:03 AM2/4/21
to thespian.py
Hi,

How to access an actor with its global name? 

Best.

Kevin Quick

unread,
Feb 4, 2021, 7:20:32 PM2/4/21
to Erdem Eser Ekinci, thespian.py
When you call `createActor`, if you specify a global name then the call will either return the ActorAddress of the existing actor with that name, or else create the global actor for that name and return the ActorAddress.

-Kevin


--
You received this message because you are subscribed to the Google Groups "thespian.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thespianpy+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thespianpy/d79c0616-3947-4627-b63f-70f49a1c029an%40googlegroups.com.


--
-KQ

Erdem Eser Ekinci

unread,
Feb 14, 2021, 6:31:13 AM2/14/21
to thespian.py
Well, then is it possible to understand type of an actor from its message?

Kevin Quick

unread,
Feb 14, 2021, 3:28:43 PM2/14/21
to Erdem Eser Ekinci, thespian.py
When you create the actor, the actor class determines what kind of actor it is.  Once created, an Actor is entirely responsible for its own messages (other than some Thespian internal messages that are handled automatically within Thespian), so you could implement any scheme you preferred for identifying actors (e.g. a RequestActorClass message that was implemented by and responded to by all of your Actors).

Regards,
  Kevin




--
-KQ
Reply all
Reply to author
Forward
0 new messages