Re: [akka-user] Implementation of Persistent Actor with initial state

2016-10-15 Thread Patrik Nordwall
I think fsm has something similar to recovery completed lör 15 okt. 2016 kl. 11:34 skrev Jakub Liska : > Yes, that's what I meant. > > Perfect, it would work in Persistent Actor... What about PersistentFSM ? > I guess that I will have to introduce an initial FSMState where I would > check whether

Re: [akka-user] Implementation of Persistent Actor with initial state

2016-10-15 Thread Jakub Liska
Yes, that's what I meant. Perfect, it would work in Persistent Actor... What about PersistentFSM ? I guess that I will have to introduce an initial FSMState where I would check whether the persistent state is empty or it was recovered and act on that. Cool, thanks a lot Patrik ! On Saturda

Re: [akka-user] Implementation of Persistent Actor with initial state

2016-10-14 Thread Patrik Nordwall
I'm not sure I understand. You want to read the old data if the persistent actor doesn't have any events of its own? You can check the state when you get RecoveryCompleted. You can also count the events/snapshot in receiveRecover and act on that when RecoveryCompleted. /Patrik fre 14 okt. 2016 k