Created
December 20, 2017 13:46
-
-
Save diogoaurelio/1290126617b4042ba345496db4fc8c9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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