May 2017
Intermediate to advanced
414 pages
13h
English
In step two, we define an actor, which changes its state to handle string and integer values.
If the state is true, we set the behavior as context.become(isStateTrue), and it starts handling string messages. If the state is false, we set the behavior as context.become(isStateFalse), and it starts handling integer messages.
In step four, we create the actor and send it to see if the output matches the functionality.
Read now
Unlock full access