Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1365

Supervised behavior that will send a message to the parent when child is restarting

$
0
0

Hi,
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.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1365

Trending Articles