Hello Heiko,

This can be achieved but at expense of having to "delete all messages stored in 
the journal for a given processor id".

This can be done from within the Processor by calling 
deleteMessages(toSequenceNr = Long.MaxValue, permanent: Boolean = …), where 
permanent deletion is optional - "soft deleted" messages won't be replayed 
anyway, so it will seam as-if it's a "fresh" Processor.

Hope this helps to answer the general question :-) If it's more of a 
real-world-app question, let's maybe check out an example scenario, because in 
general it feels a bit weird to re-use these ids (at least to me), as it might 
complicate reasoning about the system's state at "some point in time"…


-- 
Konrad Malawski
geecon.org / java.pl / krakowscala.pl / gdgkrakow.pl

From: Heiko Seeberger [email protected]
Reply: [email protected] [email protected]
Date: 23 March 2014 at 12:21:38
To: [email protected] [email protected]
Subject:  [akka-user] Unpersist a processor  

Hi,

Is it possible to remove a processor from the journal, so its id can be reused 
as a fresh processor later?

Thanks
Heiko
--
>>>>>>>>>> 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.

-- 
>>>>>>>>>>      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