Re: [akka-user] Is there an 'onRecovered' hook in EventsourcedProcessor? (Implementing a 'redo transaction')

2014-05-23 Thread Patrik Nordwall
> 23 maj 2014 kl. 17:53 skrev Lawrence Wagerfield : > > That should be: > > self ! Recover() > >> On Friday, May 23, 2014 4:50:25 PM UTC+1, Lawrence Wagerfield wrote: >> Ahh brilliant :) >> >> One thing I'm struggling with though: >> >> I'm looking through the source for Processor and I don

Re: [akka-user] Is there an 'onRecovered' hook in EventsourcedProcessor? (Implementing a 'redo transaction')

2014-05-23 Thread Lawrence Wagerfield
That should be: self ! Recover() On Friday, May 23, 2014 4:50:25 PM UTC+1, Lawrence Wagerfield wrote: > > Ahh brilliant :) > > One thing I'm struggling with though: > > I'm looking through the source for Processor and I don't understand how > calling sender ! Recover() is optional, given the ini

Re: [akka-user] Is there an 'onRecovered' hook in EventsourcedProcessor? (Implementing a 'redo transaction')

2014-05-23 Thread Lawrence Wagerfield
Ahh brilliant :) One thing I'm struggling with though: I'm looking through the source for Processor and I don't understand how calling sender ! Recover() is optional, given the initial receive must be performing similar stashing/unstashing to ensure recovery is processed first. However, if t

Re: [akka-user] Is there an 'onRecovered' hook in EventsourcedProcessor? (Implementing a 'redo transaction')

2014-05-23 Thread Patrik Nordwall
and we have a ticket to support this even better: https://github.com/akka/akka/issues/13944 /Patrik On Fri, May 23, 2014 at 5:32 PM, Lawrence Wagerfield < lawre...@dmz.wagerfield.com> wrote: > Thank you, exactly what I needed :) > > > On Friday, May 23, 2014 4:30:40 PM UTC+1, Konrad Malawski wr

Re: [akka-user] Is there an 'onRecovered' hook in EventsourcedProcessor? (Implementing a 'redo transaction')

2014-05-23 Thread Lawrence Wagerfield
Thank you, exactly what I needed :) On Friday, May 23, 2014 4:30:40 PM UTC+1, Konrad Malawski wrote: > > Hello Lawrence! > No additional callback is provided, but there is a nice pattern that > effectively provides the same functionality: > > Please check the section of the docs about recovery st

Re: [akka-user] Is there an 'onRecovered' hook in EventsourcedProcessor? (Implementing a 'redo transaction')

2014-05-23 Thread Konrad 'ktoso' Malawski
Hello Lawrence! No additional callback is provided, but there is a nice pattern that effectively provides the same functionality: Please check the section of the docs about recovery status:  http://doc.akka.io/docs/akka/2.3.3/scala/persistence.html#recovery-status If you’d keep the “last msg” aro

[akka-user] Is there an 'onRecovered' hook in EventsourcedProcessor? (Implementing a 'redo transaction')

2014-05-23 Thread Lawrence Wagerfield
My EventsourcedProcessor needs to redo some operation if it was only half completed. The events in my system are as follows, where the first event marks the beginning of a transaction, and the latter two are mutually exclusive outcomes: UserRegistrationSubmitted UserRegistered UserRegistration