February 2018
Intermediate to advanced
552 pages
13h 46m
English
This method is available in the akka.actor.Actor class. It is invoked immediately after creating a new Actor for the first time, and before moving to the Started state.
If required, we can override this method to perform any initialization activities (such as allocating resources, database connection, socket connection, and more) before the Actor moves to Started state and performs its computation.
It is invoked in two cases:
It has the following signature in the Actor class:
trait Actor{ def preStart(): ...Read now
Unlock full access