[akka-user] Restarting Akka Actor with a new State

2017-08-07 Thread Joe San
I have a scenario where I have to restart a child Actor from within a parent actor. The restart should happen with the following rules: 1. The start should happen only after stop has been completed 2. Both the stop and start should happen asynchronously I now have the following

[akka-user] Akka Context Become Messages

2015-06-12 Thread Joe San
In the following actor definition: class MyActor extends Actor { override def preStart(): Unit = { super.preStart() self ! M1(from M1) } def receive = initial(initial state) def initial(str: String): Receive = { case m1: M1 = self ! M3(from