Skip to content

Instantly share code, notes, and snippets.

@manjotmona
Created November 11, 2018 20:56
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 manjotmona/17709d66286090aafe3442d64e3d690a to your computer and use it in GitHub Desktop.
Save manjotmona/17709d66286090aafe3442d64e3d690a to your computer and use it in GitHub Desktop.
object SimpleJob
{
def props(): Props = Props(new SimpleJob)
case object JobToDo
}
class SimpleJob extends Actor with LoggerHelper
{
override def receive =
{
case JobToDo => log.info("This actor has received a JobToDo message")
case _ => log.info("This actor has received an invalid message")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment