!per #15436 make persistenceId abstract in NEW classes
(cherry picked from commit de3249f7f4b859c3caa232e579d9a3bae7406803) Conflicts: akka-samples/akka-sample-persistence-scala/src/main/scala/sample/persistence/PersistentActorExample.scala
This commit is contained in:
parent
43952af7ea
commit
b1d1d87111
24 changed files with 182 additions and 193 deletions
|
|
@ -10,6 +10,8 @@ object SnapshotExample extends App {
|
|||
}
|
||||
|
||||
class ExamplePersistentActor extends PersistentActor {
|
||||
def persistenceId: String = "sample-id-3"
|
||||
|
||||
var state = ExampleState()
|
||||
|
||||
def receiveCommand: Actor.Receive = {
|
||||
|
|
@ -28,6 +30,7 @@ object SnapshotExample extends App {
|
|||
case evt: String =>
|
||||
state = state.updated(evt)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
val system = ActorSystem("example")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue