Chapter 2. Getting started with Akka
Listing 2.1. Message definitions
Listing 2.2. Tourist actor
Listing 2.3. Guidebook actor
Listing 2.4. build.sbt
Listing 2.5. build.properties
Listing 2.6. The Main driver application
Listing 2.7. build.sbt for remote actors
Listing 2.8. application.conf for remote actors
Listing 2.9. Driver for the Guidebook JVM
Listing 2.10. Driver for the Tourist JVM
Listing 2.11. Driver for the guidebook JVM with a pool of guidebooks
Listing 2.12. application.conf with a pool of Guidebook actors
Listing 2.13. Driver for the Tourist JVM with a group of Guidebook systems
Listing 2.14. application.conf with a group of guidebook systems
Chapter 3. Understanding Akka
Listing 3.1. ImmutableHello message in Java
Listing 3.2. ImmutableHello message in Java (alternative)
Listing 3.3. Hello message in Scala
Listing 3.4. GreetingActor with simple receive loop in Java
Listing 3.5. GreetingsActor with simple receive loop in Scala
Listing 3.6. GreetingsActor with become operation in Java
Listing 3.7. GreetingsActor with become operation in Scala
Listing 3.8. Using actorSelection with relative and absolute paths
Listing 3.9. Using actorOf with Props to create an actor
Listing 3.10. Using actorOf with actor Props factory
Chapter 4. Mapping from domain to toolkit
Listing 4.1. The card catalog implemented as an in-memory Map
Listing 4.2. Messages between Customers and Librarians defined in a protocol object
Listing 4.3. The companion object defining messages RareBooks sends to itself