These are chat archives for petabridge/akka-bootcamp

17th
Jul 2015
AaronLenoir
@AaronLenoir
Jul 17 2015 23:33
In some practice project I'm doing, I "Become(Dirty)", every time I handle an AddItem message, and Become(Clean) when I persisted to disk. Suppose I get 10 "AddItem" messages, without persisting, I'm calling "Become(Dirty)" 10 times. Is there a way to check "what I became" or do I change the handler for the AddItem message? ( msg => { AddItemHandler(...); Become(Dirty) } when clean vs msg => AddItemHandler(...); when dirty (I think I just answered my own question actually but wondering if I'm right)