Apache Pekko FSM with Java

Finite State Machine in Actors

This sample is an adaptation of Dining Hakkers.

Open DiningHakkers.java.

It illustrates how the behaviors and transitions can be defined with Apache Pekko 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 Apache Pekko Typed in the documentation.