Questions tagged [akka-fsm]

Akka FSM is a framework for explicitly defining Akka actors in the form of an finite-state machine.

Akka FSM is a framework for explicitly defining Akka actors in the form of an finite-state machine, which is the native paradigm for describing the actor model in the academic literature. It's roughly equivalent to using Akka's lower-level behavior changes, but tends to emphasize actor behaviors resulting in immutable descriptions of state and date, instead of explicitly mutating actor-local state. Instead of using the receive method, actor behavior is defined using a FSM DSL that declaratively describes state behaviors and transitions.

18 questions
0
votes
1 answer

How to only process messages from child actors?

I built an Akka FSM that spawns two child actors in its constructor and only receives messages from one of them. val lhsRef: ActorRef = context.actorOf(Props(new PrimitiveNode(tpe)), "lhs") val rhsRef: ActorRef = context.actorOf(Props(new…
typeduke
  • 6,494
  • 6
  • 25
  • 34
0
votes
1 answer

How to explain these pattern matching examples?

I wrote some events in FSM, and discovered something I can not explain when pattern matching. I thought the following was completely legal, that is that I can send this actor either a message which is a vector[A] or vector[B]. when(State) { …
stian
  • 1,947
  • 5
  • 25
  • 47
0
votes
1 answer

Akka FSM timeout notification

I am developing a game where the game logic / state itself is managed by an Akka FSM actor. One of my states is WaitingForAnswer and the business logic related to this state is that a player (also an actor) must answer within 20 seconds, otherwise…
Anton Sarov
  • 3,712
  • 3
  • 31
  • 48
1
2