Re: [akka-user] Shutdown and Cleanup of Akka Persistent Actor Journal and Snapshots

2016-06-03 Thread Ian Clegg
Hi Johan, Many thanks, thats what I needed. I had thought about context.become, but wasn't sure with the stashing -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the

Re: [akka-user] Shutdown and Cleanup of Akka Persistent Actor Journal and Snapshots

2016-06-03 Thread Akka Team
Hi Ian, Both deleteMessages and deleteSnapshots fire away a message to trigger the deletion, so as soon as they return it should be safe to stop the actor, there just wont be any actor left to accept the completion (or failure) messages for those two actions. Passing a message through the mailbox

[akka-user] Shutdown and Cleanup of Akka Persistent Actor Journal and Snapshots

2016-05-12 Thread Ian Clegg
Morning all, I'm working on a system where we have a relativity small amount of very high performance flash storage and I would like to make the best use of it. Whats the best practice to stop a persistant actor and ensure its persistant state is deleted/removed entirely from storage? Based on