- What is the meaning of the Behavior[Tpe] definition?
Behavior[Tpe] explicitly specifies that this actor is capable of handling messages that are subtypes of Tpe. By recursion, we can conclude that the returned behavior also will be Behavior[Tpe].
- How do you get access to the scheduler in the actor's behavior?
The schedule is accessible via the behavior constructor, Behaviors.withTimers.
- Describe possible ways an actor can be stopped.
An actor can be stopped by the parent using the parent's actor context: context.stop(child).
An actor can also stop itself by returning respective behavior: Behaviors.stopped.
An actor can also be stopped if an exception was thrown by the actor's logic and the SupervisorStrategy defined for this actor is stop.
- What is the difference between a local and a cluster receptionist?
There are different implementations but...