How to create/ supervise new Actors from an Actor

17 views
Skip to first unread message

uwe schaefer

unread,
Apr 24, 2014, 12:35:34 PM4/24/14
to jumi-tes...@googlegroups.com
Hi.

jumi looks like a very interesting lib that stands out by being much more lightweight than akka. i have two little questions, though:

Wikipedia: in response to a message that it receives, an actor can make local decisions, create more actors, send more messages, and determine how to respond to the next message received.

I am wondering if creating/supervising/destroying Actors from an Actor is supported in Jumi. Imho i would need to have access to the ActorThread to achieve that, right?

cu uwe

Esko Luontola

unread,
Apr 25, 2014, 3:55:36 AM4/25/14
to jumi-tes...@googlegroups.com
uwe schaefer wrote on 24.4.2014 19:35:
> I am wondering if creating/supervising/destroying Actors from an Actor
> is supported in Jumi. Imho i would need to have access to the
> ActorThread to achieve that, right?

Hi. Good to hear that you like Jumi Actors.

Yes, you can create and destroy actors through the ActorThread. If you
have some actors that need to do that, then pass them an ActorThread
instance. There is very limited support for supervising in the form of a
FailureHandler.

--
Esko Luontola
www.orfjackal.net
Reply all
Reply to author
Forward
0 new messages