akka/akka-core

PersistentFSMActor: Remove duplication between akka.actor.FSM and akka.persistence.fsm.FSM

Aperta

#18.154 aperta il 9 ago 2015

 (0 commenti) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:persistence

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

Currently akka.persistence.fsm.PersistentFSMActor inherits from akka.persistence.fsm.FSM - a clone of the original akka.actor.FSM with some Event Sourcing related changes in FSM's DSL. Possible ways to fix this: akka.persistence.fsm.FSM should either be derived from the original FSM or a common trait should be introduced - for example:

trait FSMCore {...}
trait FSM extends FSMCore {...}
trait EventSourcedFSM extends FSMCore {...}

Guida contributor