Created
January 14, 2014 23:27
-
-
Save chbatey/8427997 to your computer and use it in GitHub Desktop.
Basic actor that should send a message back to sender
This file contains hidden or 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
| package batey.akka.testing.backtosender | |
| import akka.actor.Actor | |
| class Server extends Actor { | |
| def receive: Actor.Receive = { | |
| case msg @ _ => { | |
| println("I should really send something back!") | |
| } | |
| } | |
| } | |
| case object Messages { | |
| case object Startup | |
| case object Ready | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment