Supervision

Also, part of the fault-tolerance strategy that Actor provides is the supervisorStrategy method:

You can override this method to provide the actor with different ways to supervise its children. Supervision is the concept of watching the children's life cycle and taking actions on significant events, such as when an actor fails with an exception. In Akka, parent actors are supposed to supervise child actors. The supervision strategy is defined as follows:

As you can see, there are two subclasses defined for this class, and the documentation ...

Get Mastering Functional Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.