May 2017
Intermediate to advanced
414 pages
13h
English
For this recipe, we need to perform the following steps:
case object ShutdownPersistentActor
val receiveCommand: Receive = { case UserUpdate(userId, Add) => persist(AddUserEvent(userId)) (updateState) case UserUpdate(userId, Remove) => persist(RemoveUserEvent(userId))(updateState) case "snap" => saveSnapshot(state) case "print" => println(state) case ShutdownPersistentActor ...
Read now
Unlock full access