Fixed,  my implementing processors can now use processCommand.

Very tidy. This all works well now - I have pushed my new code to github so 
people can see how I am doing DDD with akka-persistence :-) 

  def processCommand: Receive
  override def receiveCommand = initializing.orElse(active)
  def initializing: Receive = {

    case "ResetPrimaryKeyId" =>

      log.debug("Recovery is Complete - " + repository.getKeys.size + " objects 
loaded. Will now reset key ID")
      // recovery has finished .. so set the ID on the repo
      idGenerator.setStartingId(repository.maxId)
      log.debug("Repository Key Reset - Next ID is: " + 
idGenerator.potentialNextId)

      unstashAll()

      context.become(active)

    case other if recoveryFinished =>
      stash()
  }

  def active: Receive = processCommand


On Friday, 14 March 2014 22:24:27 UTC, Ramon Buckland wrote:
>
> Hi Patrik, Martin,
>
> I gave this a crack - (just had time to sit down tonight to code up some 
> bits). 
>
>  

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to