rkrzewski / akka-cluster-etcd

Akka cluster management using etcd
Other
70 stars 14 forks source link

Use FSM timers in SeedListActor #12

Closed rkrzewski closed 8 years ago

rkrzewski commented 8 years ago

Currently retryMsg is implemented using ActorSystem scheduler. Using FSM timer will most likely be easier and more readable.

rkrzewski commented 8 years ago

FSM timers are not applicable here, because there is at most one timer instance with a given name. Setting a new timer cancels the previous one with the same name. SeedListActor may have several operations pending at the same time.