Skip to content

Files

This branch is 25 commits behind akka/akka-samples:2.6.

akka-sample-fsm-java

Finite State Machine in Actors

This sample is an adaptation of Dining Hakkers.

Open DiningHakkersTyped.scala.

It illustrates how the behaviors and transitions can be defined with Akka Typed.

Start the application by typing mvn compile exec:java -Dexec.mainClass="sample.DiningHakkers". In the log output you can see the actions of the Hakker actors.

Read more about Akka Typed in the documentation.