Crisp Lambda is an implementation of actor model using Java 8 lambda expressions.
Crisp Lambda uses Gradle as its build tool. To build the source code:
./gradlew build
It configures and downloads Gradle if necessary and then builds the project.
As an example a ping-pong model of actors is provided in the example package of the source. There are two examples with two different approaches of concurrency using Crisp Lambda API.
DedicatedThreadExample
that uses a dedicated thread ownership to execute actor's messages.SharedThreadPoolExample
that uses a shared pool of threads and shared message queue to execute actor's messages.
To run the examples, edit build.gradle
and choose the main class, then:
./gradlew run