May 2017
Intermediate to advanced
414 pages
13h
English
For this recipe, we need to perform the following steps:
package com.packt.chapter6 import akka.persistence.fsm.PersistentFSM.FSMState sealed trait CountDownLatchState extends FSMState case object Closed extends CountDownLatchState { val identifier = "Closed" } case object Open extends CountDownLatchState { val identifier = "Open" } case class Count(n: Int = -1) sealed trait Command case class Initialize(count: Int) extends Command case object Mark extends Command sealed trait DomainEvent case object LatchDownOpen extends DomainEvent case ...
Read now
Unlock full access