Created
January 14, 2014 23:34
-
-
Save chbatey/8428088 to your computer and use it in GitHub Desktop.
Server having implemented sending a ready message on startup
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 | |
| import batey.akka.testing.backtosender.Messages.{Ready, Startup} | |
| class Server extends Actor { | |
| def receive: Actor.Receive = { | |
| case Startup => { | |
| sender ! Ready | |
| } | |
| 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