Skip to content

Instantly share code, notes, and snippets.

@diogoaurelio
Created December 20, 2017 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogoaurelio/1290126617b4042ba345496db4fc8c9b to your computer and use it in GitHub Desktop.
Save diogoaurelio/1290126617b4042ba345496db4fc8c9b to your computer and use it in GitHub Desktop.
import akka.actor.Actor
import akka.actor.Props
import akka.event.Logging
class DudeA extends Actor {
val log = Logging(context.system, this)
def receive = {
case "hello" => sender() ! "Hallo, Grüß Dich!"
case _ => log.info("Hmm...")
}
}
class DudeB extends Actor {
val log = Logging(context.system, this)
def receive = {
case "hallo" => sender() ! "no hablo aleman"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment