Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created January 14, 2014 23:34
Show Gist options
  • Select an option

  • Save chbatey/8428088 to your computer and use it in GitHub Desktop.

Select an option

Save chbatey/8428088 to your computer and use it in GitHub Desktop.
Server having implemented sending a ready message on startup
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