Once the actors have processed the messages, it may be imperative to stop them. Stopping of actors may be required because we have created a large number of actors and now the load has come down, so we can stop some to conserve resources. In this section, we will see the various options available to stop actors.
Actor termination involves multiple steps. Once the
STOP signal is received by the actor, the following actions take place:
- Actor stops processing the mailbox messages.
- Actor sends the
STOPsignal to all the children.
- Actor waits for termination message from all its children.
- Next, Actor starts the self-termination process that ...