I am new to Akka and I am implementing something for fine. What I have now is a supervisor that have a child actor that does the actual work. If the work is done, the child will send the supervisor a case object Finished which changes the state of the supervisor.
However, in this sense, I can also send the supervisor in the master thread Finished, and then the action will be completely out of order.
Is there a way for the supervisor to react differently depending on who sends he message? Or better, it is possible to enforce the supervisor to only receive Finished if it is sent by its child?
Finished
messages? Just saying for example Finished for worker actors, Finish for supervisor actor – Hüseyin Zengin