In this Java 8 project, examples are used to illustrate the most akka important concepts.
The tools are dummy implementations and Junit tests that allow for observation of the behavior of:
- message queues
- routers
- types of sending messages
- supervision strategies and actor life cycle
- event bus
- dead letters
- typed actors
This is a Maven Java project. There are 16 Junit tests that can be run thanks to 'mvn' command:
mvn -Dtest=com.logicaalternativa.examples.akka.queue.ActorQueueTest test
mvn -Dtest=com.logicaalternativa.examples.akka.queue.ActorQueueRouteRoundRobinTest test
mvn -Dtest=com.logicaalternativa.examples.akka.message.ActorProxyTest#testForward test
mvn -Dtest=com.logicaalternativa.examples.akka.message.ActorProxyTest#testRedirectMessageToChild test
mvn -Dtest=com.logicaalternativa.examples.akka.message.ActorProxyTest#testFutur test
mvn -Dtest=com.logicaalternativa.examples.akka.message.ActorProxyTest#testAwaitFutur test
mvn -Dtest=com.logicaalternativa.examples.akka.supervisorstrategy.ActorLetItCrashTestDefault test
mvn -Dtest=com.logicaalternativa.examples.akka.supervisorstrategy.ActorLetItCrashTestEscalate test
mvn -Dtest=com.logicaalternativa.examples.akka.supervisorstrategy.ActorLetItCrashTestResume test
mvn -Dtest=com.logicaalternativa.examples.akka.supervisorstrategy.ActorLetItCrashTestStop test
mvn -Dtest=com.logicaalternativa.examples.akka.bus.PublishSimpleSubcribeTest test
mvn -Dtest=com.logicaalternativa.examples.akka.bus.DeadLettersTest test
mvn -Dtest=com.logicaalternativa.examples.akka.typed.TypedActorDummyImpTest#testReturnVoidWithSleep test
and
mvn -Dtest=com.logicaalternativa.examples.akka.typed.TypedActorDummyImpExceptionsTest#testRuntimeExceptionVoid test
mvn -Dtest=com.logicaalternativa.examples.akka.typed.TypedActorDummyImpTest#testFutureEcho test
and
mvn -Dtest=com.logicaalternativa.examples.akka.typed.TypedActorDummyImpExceptionsTest#testRuntimeExceptionFuture test
mvn -Dtest=com.logicaalternativa.examples.akka.typed.TypedActorDummyImpTest#testEcho test
and
mvn -Dtest=com.logicaalternativa.examples.akka.typed.TypedActorDummyImpExceptionsTest#testRuntimeExceptionString test