Is there a way to configure the supervising behavior for a child in akka-typed, in order for it to send a specific message to its parent everytime before the child is restarted?
Right now, we can supervise a child with a given Restart strategy using Behaviors.supervise, which returns a wrapped behavior for the child actor and handles its failures. Is there a way to wrapp the child with different supervising behavior that will send notification(message) to its parent before the child is restarted?
It could be a Java or Scala-based solution.
Thanks in advance.