2024-04-18 15:41:22 +02:00
## Finite State Machine in Actors
This sample is an adaptation of [Dining Hakkers ](http://www.dalnefre.com/wp/2010/08/dining-philosophers-in-humus/ ).
2024-09-23 14:01:12 +02:00
To try this example locally, download the sources files with [akka-samples-fsm-scala.zip ](https://doc.akka.io/libraries/akka-core/current//attachments/akka-samples-fsm-scala.zip ).
2024-05-06 21:28:17 +02:00
2024-04-18 15:41:22 +02:00
Open [DiningHakkersTyped.scala ](src/main/scala/sample/DiningHakkers.scala ).
It illustrates how the behaviors and transitions can be defined with Akka Typed.
Start the application by typing `sbt "runMain sample.DiningHakkers"` . In the log output you can see the actions of the `Hakker` actors.
2024-09-23 14:01:12 +02:00
Read more about Akka Typed in [the documentation ](http://doc.akka.io/libraries/akka-core/current/ ).
2024-04-18 15:41:22 +02:00
---
The Akka family of projects is managed by teams at Lightbend with help from the community.
License
-------
Akka is licensed under the Business Source License 1.1, please see the [Akka License FAQ ](https://www.lightbend.com/akka/license-faq ).