ParentFull threadamsaarin·An clean way to implement finite-state machines is Akka FSM [1]. I recently wrote a blog post about it: http://news.ycombinator.com/item?id=3976558[1] http://doc.akka.io/docs/akka/snapshot/scala/fsm.htmlView on HN